Skip to Content
GNU Emacs Pocket Reference
book

GNU Emacs Pocket Reference

by Debra Cameron
November 1998
Beginner
64 pages
1h 28m
English
O'Reilly Media, Inc.
Content preview from GNU Emacs Pocket Reference

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Writing GNU Emacs Extensions

Writing GNU Emacs Extensions

Bob Glickstein
Learning GNU Emacs, Second Edition

Learning GNU Emacs, Second Edition

Debra Cameron, Bill Rosenblatt, Eric S. Raymond
The GNU Make Book

The GNU Make Book

John Graham-Cumming
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 1565924967