Tag Archives: Emacs-lisp

An Emacs Style Guide

Bozhidar Batsov, proprietor of Emacs Redux, is starting an interesting new project: The Emacs Lisp Style Guide. The idea is to create a community contributed set of rules for “good Elisp form.” Normally, I'd hate that sort of thing. Almost … Continue reading

Posted in Programming | Tagged , | Leave a comment

Removing Repeated Occurrences of a Target Character From a String

The Problem While I was going through my RSS feed the other day, I came across this Programming Praxis problem and thought right away that the solution called for a state machine. It's one of those problems that seems easy … Continue reading

Posted in Programming | Tagged , | 2 Comments

Mutable String and Emacs Buffer Passing Style

Speaking of Christopher Wellons, he's got a very interesting post over at null program on mutable strings and Emacs buffer passing style. Wellons starts by pointing out that strings in Emacs Lisp, like many other languages, have a fixed size … Continue reading

Posted in Programming | Tagged , | Leave a comment

Emacs Byte Code

Over at null program, Christopher Wellons has an excellent post on Emacs Byte Code Internals. Most people won't care, of course, but we're nerds and we don't like black boxes. As Wellons says, the byte code internals are under documented—or … Continue reading

Posted in Programming | Tagged , | Leave a comment

Serializable Emacs Objects

Christopher Wellons over at null program has a very nice post on readable closures in Emacs. With the introduction of lexical scoping and, consequently, closures in Emacs 24 it's nice to discover that Elisp closures are readable. That is, you … Continue reading

Posted in General | Tagged , | Leave a comment

Popup Windows in Emacs

Kris Jenkins has a nice post on using the popup package to pop up help windows in Emacs. He shows a tiny amount of Elisp that pops up the system help for the symbol at point. It would be easy … Continue reading

Posted in Programming | Tagged , | Leave a comment

Hyphenating Word Phrases

Some word phrases should be hyphenated. For example, you should write “an end-to-end solution” rather than “end to end solution.”1 If you're like me, you almost always forget about the hyphenation initially and just type “end to end” without stopping … Continue reading

Posted in General | Tagged , | 4 Comments

Full Screen Magit Status

Ever since he posted it last December, I've been a huge fan of Magnar Sveen's hack to display magit-status in full screen and then restore the previous window configuration upon quitting. It's nice because you can commit a file and … Continue reading

Posted in General | Tagged , | Leave a comment

Running Ping in Emacs

Last year I wrote about my delight in discoverying the Emacs Net Utilities. It's nice to be able to run a quick ping, traceroute, or even some of the other network utilities right from Emacs. I've found, however, that there … Continue reading

Posted in Programming | Tagged , | Leave a comment

Specifying Indent Rules for Emacs Lisp

Eric J.M. Ritz has an excellent post on indenting Elisp code. Say what? Isn't that what Emacs is for? Yes but there's a corner case when you're writing macros. Here's a macro that I use to make my Elisp code … Continue reading

Posted in Programming | Tagged , | 6 Comments