Tag Archives: Emacs

Regular Expressions and Emacs Lisp

Over at What keramida said…, Giorgos Keramidas poses an interesting problem. Given the following output from dstat, get rid of the B, k, and M suffixes by converting them into bytes. —-system—- —-total-cpu-usage—- –net/eth0- -dsk/total- sda- time |usr sys idl … Continue reading

Posted in Programming | Tagged , | 3 Comments

Emacsy

Shane Celis has announced that Emacsy was accepted as a Google Summer of Code project. Celis describes Emacsy as an embeddable Emacs-like library for non-text applications: Emacs OS without the text editor. The idea is to bring the Emacs way … Continue reading

Posted in General | Tagged | Leave a comment

Magit Tutorial

John Stevenson over at jr0cket has a nice Magit tutorial up. If you’re using Emacs and Git then you definitely need to check out Magit. I get mine from Melpa but the link above leads to the Git repository if … Continue reading

Posted in General | Tagged , | 1 Comment

VimGolf in Emacs

It’s been a while since we Emacs enthusiasts have locked horns with the users of that other editor. Here’s a simple VimGolf challenge to warm us up. Starting with the buffer one two three end up with (one) (two) (three) … Continue reading

Posted in General | Tagged | 22 Comments

Tail Call Optimization in Elisp

If you’ve got a Lisp background—especially a Scheme background—you may have internalized recursion as a looping mechanism and general programming strategy. That doesn’t work with Elisp, of course, because each recursive invocation allocates a stack frame. Not to worry, though, … Continue reading

Posted in Programming | Tagged , | 2 Comments

Elisp for Common Lisp Programmers

Jean-Philippe Paradis Tweets a thought about Common Lisp programmers learning Elisp that seems to me to be exactly right. I’ve expressed the same idea myself but not nearly as succinctly or neatly.

Posted in General | Tagged , | Leave a comment

Sacha Chua Chats With Bastien Guerry

For those of you who aren’t familiar with Org Mode, here’s a bit of the back story. Carsten Dominik, an astronomer, originally wrote Org Mode as a small extension to outline-mode to help with his note taking and list management … Continue reading

Posted in General | Tagged , | 2 Comments

A Smarter Way to Move to BOL

Bozhidar Batsov over at the excellent Emacs Redux has a particularly good tip on improving move-beginning-of-line (mapped to 【Ctrl+a】 by default) so that it moves first to the leading non-blank character of the line and then to the absolute beginning … Continue reading

Posted in General | Tagged | 2 Comments

A Query for Mac Emacs Users

I was just reading Bozhidar Batsov’s latest post on deleting whitespace—nice tip on just-one-space by the way—and noticed that he had to rebind just-one-space from 【Meta+Space】because that key sequence is reserved by the OS X for Spotlight. I’ve observed that … Continue reading

Posted in General | Tagged | 15 Comments

Eshell

Back in February I wrote about switching from bash to John Wiegley’s eshell. I’ve been really happy with eshell but have used it pretty much as I would bash. Recently, I saw a tweet that pointed me to this Mastering … Continue reading

Posted in General | Tagged | 3 Comments