Table A-4. Modes
Table A-4. Modes (Chapter 2, Chapter 5, Chapter 7)
| Variable | Default | Description |
|---|---|---|
| major-mode | fundamental-mode | Default mode for new buffers, unless set by virtue of the filename; when setting this variable, remember to precede the mode name with a single quote (the value is a symbol). |
| default-major-mode | fundamental-mode | The major mode for new buffers. |
| auto-mode-alist | (see Chapter 10) | List of associations between filenames and major modes. |
| interpreter-mode-alist | (see Chapter 9) | A list similar to auto-mode-alist, but for interpreted languages like Perl and Python. |
| indent-tabs-mode | t | If non-nil, allow the use of tab characters (as well as spaces) when indenting with C-j. This can really drive other developers mad, so you should probably disable this if you are working on a team. |
| dired-kept-versions | 2 | When cleaning a directory in Dired, keep this many versions of files. |
| dired-garbage-files-regexp | \\.\\(?:aux\\|bak\\|dvi\\|log\\|orig\\|rej\\|toc\\)\\' | Defines what file types are marked when selecting garbage files in Dired. |
| dired-listing-switches | "-al" | Options passed to the ls command for generating dired listings; should contain at least "-l". |
| dired-view-command-alist | (see Chapter 10) | Defines helper applications for Dired to invoke when opening certain types of files. |
| shell-file-name | varies | Filename of shell to run with functions that use one, such as list-directory, dired, and compile; taken from value of the Unix environment variable SHELL. |
| load-path | List of directories to search for Lisp packages to load (see Chapter 11); often set to lisp subdirectory of directory where Emacs source code is installed on your system. | |
| lpr-switches | nil | Defines command-line options to pass to lpr. |
| calendar-week-start-day | 0 | Day defined as first day of the week. 0 is Sunday, 1 is Monday and so on. |
| picture-tab-characters | "!-~" | Characters interpreted as tab stops in picture mode if they appear on a line of their own. |
Table A-5. Text editing
Table A-5. Text editing (Chapter 2, Chapter 3, Chapter 7, Chapter 8)
| Variable | Default | Description |
|---|---|---|
| sentence-end | (see Chapter 13) | Regular expression that matches ends of sentences. |
| sentence-end-double-space | t | If non-nil, do not treat single spaces after periods as ends of sentences. |
| paragraph-separate | "[ \t\f]*$" | Regular expression that matches beginnings of lines that separate paragraphs. |
| paragraph-start | "\f\\|[ \t]*$" | Regular expression that matches beginnings of lines that start or separate paragraphs. |
| page-delimiter | "^\f" | Regular expression that matches page breaks. |
| tex-default-mode | 'latex-mode | Mode to invoke when creating a file that could be either TEX or LATEX. |
| tex-run-command | "tex" | Character string used as a command to run in a subprocess on a file in mode. |
| latex-run-command | "latex" | String used as a command to run LATEX in a subprocess. |
| slitex-run-command | "slitex" | String used as a command to run SliTEX in a subprocess. |
| tex-dvi-print-command | "lpr -d" | Character string used as a command to print a file in tex mode with C-c C-p. |
| tex-alt-dvi-print-command | "lpr -d" | Command to direct .dvi files to a secondary printer. |
| tex-dvi-view-command | (if (eq window-system 'x) "xdvi" "dvi2tty * | cat -s") | Character string used as command to view a .dvi output file with C-c C-v; this expression yields xdvi on X Window systems, and a terminal-based alternative on others. This will only work if a Unix-like operating environment is present (such as Mac OS X, or Cygwin under Windows). |
| tex-offer-save | t | If non-nil, offer to save any unsaved buffers before running TEX. |
| tex-show-queue-command | "lpq" | Character string used as command to show the print queue with C-c C-q in Tex mode. |
| tex-directory | "." | Directory for TEX to put temporary files in; default is the current directory. |
| outline-regexp | "[*\f]+" | Regular expression that matches heading lines in outline mode. |
| outline-heading-end-regexp | "\n" | Regular expression that matches ends of heading lines in outline mode. |
| selective-display-ellipses | t | If t, display "..." in place of hidden text in outline mode; otherwise don't display anything. |