Skip to navigation

Archive for the 'Emacs' Category

Emacs 22 does not highlight region

Thursday, September 8th, 2011

Well, I doubt many people have this problem. For some reason, on a server I use the installed Emacs version is Emacs 22, not the current Emacs 23, and I ran into the problem that I was expecting transient-mark-mode when it was in persistent-mark-mode, as I figured out here. However, it’s the kind of solution you don’t [...]

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 [...]

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”, [...]

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 [...]