Modes R' Us
Popular Supported Major Modes
- C/C++
- Perl
- HTML
- Shell
- Shell-script
- Lisp
TEX and LATEX
- ...you name it!
Telling Emacs about Modes and Files
To tell Emacs to go into a major mode based on a file's extension,
place this in your "~/.emacs" file:
(setq auto-mode-alist (cons '("\\.java$" . java-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.cxx$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.hxx$" . c++-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.c$" . c-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.pl$" . perl-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.pm$" . perl-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.txt$" . text-mode) auto-mode-alist))
Beginning |
Previous |
Next
Last updated $Date: 1997/04/11 03:46:12 $.