Author Archives: jcs

Text Replacement In Several Files With Emacs

Just a quickie. I was browsing around in Aaron Hawley’s Giant Emacs Reference Sheet when I came across this little ditty: C-x d *.c RET Q int RET long It was described as “replace ‘long’ for ‘int’ in .c files.” … Continue reading

Posted in General | Tagged | 5 Comments

Administrivia

The scum spammers, who doubtless describe themselves as SEO consultants, have discovered a new way to get links into forum comments: trackbacks and pingbacks. Irreal does have the occasional legitimate trackback and I enjoy them as they give me a … Continue reading

Posted in Blogging | 1 Comment

Comment Boxes In Emacs

Here’s a neat little hack that can save a bit of time. Emacs has the comment-box command that will put a mode-specific comment box around a region. For example, suppose you have the Elisp A function to do something very … Continue reading

Posted in Programming | Tagged | 3 Comments

It’s Time For Publishers To Get A Clue

Those of you who have been dropping by this blog for a while know that I’ve written several posts about the publishing industry and its consistent failure to accept that things are changing (see The Future Of Books, More Bad … Continue reading

Posted in General | Leave a comment

Highlighting Regexps, Phrases, And Lines In Emacs

I mostly use isearch-forward, 【Ctrl+s】, and isearch-backward, 【Ctrl+r】, to search for words or phrases in a buffer. Sometimes, though, it’s convenient to see all the matches at once. Emacs has a set of commands that make this easy. The easiest … Continue reading

Posted in General | Tagged | 1 Comment

Property Lists In Emacs

Xah Lee has a nice post up with a function that fixes what he sees as some problems with the default Emacs case-changing commands. Apparently, our use cases are different because I’m not bothered by the default behavior. Still, the … Continue reading

Posted in Programming | Tagged | Leave a comment

Installing Emacs 24

As I mentioned in my Emacs 24 Features post, Bozhidar Batsov over at (think) has been using Emacs 24 with great success. He has a new post up that describes how to get Emacs 24 installed on OS X, Linux, … Continue reading

Posted in General | Tagged | 2 Comments

Beautifying JSON In Emacs

I really like JSON. It’s the perfect mechanism for serializing data; much better, in my opinion, than the typical XML solution. That said, I don’t use it enough to justify installing one of the really nice packages that deal with … Continue reading

Posted in General | Tagged | 5 Comments

Using Key Chords In Emacs

Last week I wrote about David Andersson’s Key Chord Mode that I discovered in the latest Emacs Rocks video. I thought it was interesting and I enabled it in my Emacs by adding (require ‘key-chord) (key-chord-mode 1) (key-chord-define-global “dq” ‘dq) … Continue reading

Posted in General | Tagged | 4 Comments

VimGolf In Emacs Episode 20 Is Up

Tim Visher has another VimGolf in Emacs video up. This one has some interesting applications of the Emacs calc function. As I mentioned on my old blog, I use a Scheme REPL as my calculator so I’ve never bothered to … Continue reading

Posted in General | Tagged | Leave a comment