Useful Emacs bits 'n' bobs

I've hacked my emacs configuration quite a lot in order to support some major modes that I find particularly useful: (php-mode, html-helper-mode, css-mode and the rather more specialist lhcb-c++-mode in particular.

I've also gone to a fair bit of trouble to set some of the more ubiquitous emacs key combinations to a more "normal" behaviour: I've bound C-a to "select all", use S-[cursor keys] to select regions and have bound Home and End to go to the start and end (respectively) of lines rather than the BOF and EOF. I also use the rather wonderful cua-mode to bring the cut-copy-paste-undo shortcuts in line with the rest of computing, not least because I found myself getting some RSI-like hand pains after repeated use of C-y for pasting! The C-s search binding and C-k kill-line bindings remain intact since I find them really handy. I also recommend the AuCTeX package for advanced LaTeX editing in Emacs, as well as php-elisp, the equivalent functionality for PHP editing.

Here's a few handy key combinations I wish I'd been told about when I started using emacs:

For your entertainment, here's a snapshot of my current .emacs file:

.emacs

As you can see, the .emacs just really includes a load of other elisp files. So, here they are:

key-bindings.el

This file defines the bindings of key combinations to functions

mode-hooks.el

This file defines the bindings of file-types (by name) to major emacs modes

pickiness.el

This elisp make emacs look and behave the way I want it to (i.e. very differently from the horrible defaults!)

myfunctions.el

Elisp functions I've written or otherwise hacked together myself