O'Reilly logo

GNU Emacs Pocket Reference by Debra Cameron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.9. Marking Up Text with Emacs

1.9.1. nroff Mode

To Keystrokes Command Name
Enter nroff mode ESC x nroff-mode
Move the cursor to the next text line ESC n forward-text-line
Move the cursor to the previous text line ESC p backward-text-line
Enter electric nroff mode (a minor mode in which you type the first in a pair of nroff commands, then press C-j, and Emacs inserts the second command of the pair) ESC x electric-nroff-mode
Complete common macro pairs C-j electric-nroff-newline

1.9.2. TeX Mode

To Keystrokes Command Name
Enter TeXmode ESC x plain-tex-mode
Enter LaTeX mode ESC x latex-mode
Insert two hard returns (standard end of paragraph) and check syntax of paragraph C-j tex-terminate-paragraph
Insert two braces and put cursor between them C-c { tex-insert-braces
Position the cursor following the closing brace, if you are between braces C-c } up-list
Check buffer for syntax errors ESC x validate-tex-buffer
Process buffer in TeX or LaTeX C-c C-b tex-buffer
Put the message shell on the screen, showing (at least) the last error message C-c C-l tex-recenter-output- buffer
Process region in Text or LaTeX C-c C-r tex-region
Kill TeXor LaTeX processing C-c C-k tex-kill-job
Print TeX or LaTeX output C-c C-p tex-print
Show print queue C- c C-q tex-show-print-queue
Provide closing element of a command pair, in LaTeX mode only C-c C-e tex-close-latex-block

1.9.3. Html-Helper Mode

Html-helper mode by Nelson Minar offers great flexibility ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required