Skip to navigation

Archive for the 'Emacs' Category

How to get Emacs key bindings in Ubuntu

Tuesday, February 16th, 2010

To get the Emacs key bindings (especially, Ctrl-a to go to beginning of line, Ctrl-e to end of line) systemwide, e.g. in Firefox, you use:
gconf-editor
and change the setting desktop → gnome → interface → gtk_key_theme from “Default” to “Emacs”.

Emacs with ESS and AucTeX on Windows

Monday, September 14th, 2009

I will have to use MS Windows for my new job, at least some of the time. I’ll put related posts in a new “MS Windows” category.
If you use R, you most likely want ESS (Emacs Speaks Statistics) for your GNU Emacs. If you use LaTeX, you will also want AucTeX.
I highly recommend you [...]

Emacs regular expressions: match at least n occurrences of character class

Tuesday, June 16th, 2009

Aside: I just discovered the very useful Emacs regex builder tool. Type M-x regexp-builder.
I wanted a regular expression to match the pattern of mutt mail edit buffers, to apply mail-mode, but I did not want to match the muttrc and mutt.hooks files I have.
Mail edit buffers get a pattern that starts with “mutt”, followed by [...]

Ubuntu/ Linux: How to permanently turn off the annoying system bell (beep)

Thursday, December 4th, 2008

You know what I mean … that loud loud beep that almost knocks you out whenever you type a non-available keyboard shortcut in Emacs.
For immediate relief (this will not persist through a reboot):
sudo modprobe -r pcspkr
For permanent relief, edit the file /etc/modprobe.d/blacklist and add the line:
blacklist pcspkr
Addendum
On my Lenovo Thinkpad X41, there was still an [...]

Better buffer switching in Emacs

Tuesday, May 20th, 2008

I’ve switched from XEmacs to Emacs, about a month back. I like it much better. On Xubuntu, many more things work “out of the box” (for example the Noweb mode for Sweave). X clipboard contents are immediately available for yanking!
One thing that’s always annoyed me in both XEmacs and Emacs was the buffer switching [...]