Copied from `lisp-mode' and modified for LFE.