Tag Archives: Emacs-lisp

Generating Random Trees

I’ve mentioned Atabey Kaygun’s blog before. He mostly writes short posts on some mathematical algorithm, which he illustrates with Lisp. One such post was about generating random trees of \(n\) nodes in such a way that every possible tree having … Continue reading

Posted in Programming | Tagged , | Leave a comment

Emacs Idioms

Learning to configure and extend Emacs is pretty easy for those with a modicum of Lisp experience. Much has been written about the shortcomings of Elisp and while those criticisms have merit, it’s easy for a Lisper to become comfortable … Continue reading

Posted in Programming | Tagged , | Leave a comment

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