Emacs lisp for copying diff hunks

When I’m looking at a diff in Emacs’s diff-mode, I usually use native functions like diff-apply-hunk to apply/revert or otherwise operate on hunks. Occasionally, though, I just want to kill (copy) part of the diff so I can do something else with it. When I do, I end up with leading – or + or […]

Standard

Java stack traces in Emacs compilation-mode

I often run Java programs like Android apps in my Emacs compilation buffer while I’m working on them, so I see Java stack traces there just like compile errors. Emacs is good at identifying compilation errors so you can jump straight to the source file and line, but not so much with stack traces. Here’s […]

Standard
Uncategorized

Crazy Emacs features

I just noticed this gem while skimming the list of packages built into Emacs: landmark neural-network robot that learns landmarks Yes, Emacs is no ordinary text editor. It’s an operating system, a religion, an entire universe unto itself. Here are a few other winners. animate make text dance bruce phrase utility for overloading the Communications […]

Standard

Emacs vc-git tweaks

I use Emacs, vc, and git all pretty heavily. I know the cool kids use magit and egg, but good old vc has stuck with me through four different “new hotness” version control systems – CVS, Perforce, Subversion, and now git – and I’m sure it will still be around for many more to come. […]

Standard

emacsclient in TRAMP remote shells

I recently started running shells inside Emacs via shell mode, including ssh sessions to remote hosts using TRAMP. I’m pretty happy with it so far, but one thing that didn’t work out of the box was emacsclient. Ideally it would open files in the local Emacs with TRAMP, but there’s no obvious way for an […]

Standard