How do I add color syntax highlighting to GNU emacs?
- by Alex Reynolds
I have two versions of emacs available to me on a locked workstation:
$ /usr/local/bin/emacs --version
GNU Emacs 22.3.1
$ /usr/bin/emacs --version
GNU Emacs 21.4.1
In both cases, my terminal type is xterm when I run either version of emacs.
When I run the v21 version of emacs, I get syntax coloring for Perl, HTML, and other modes.
When I run the v22 version, I do not get syntax coloring.
I would like to migrate from the v21 version because the combination of v21 emacs, GNOME Terminal and GNU Screen is eating Ctrl-arrow key chords, which prevents me from moving quickly between words. (OS X Terminal and GNU Screen do not have this issue.) The v22 version allows use of Ctrl-arrow key combinations with GNOME Terminal and GNU Screen.
How do I fix the v22 version (or ask my sys admin to fix) so that it once again highlights syntax and allows me to use Ctrl-arrow key combinations?