Making Simple Drawings
Emacs is not, by any means, a graphics package, but it does provide some limited drawing capabilities. Emacs includes a picture mode that allows you to draw simple pictures using keyboard characters. It’s useful for inserting a quick drawing or diagram in a mail message, something that most graphics packages can’t do. It’s also good for making block diagrams, timing diagrams (for electrical engineers), timelines, and other simple drawings.
Don’t overlook this simple facility! We have seen many papers that were carefully formatted with troff or TEX, with a simple star-and-bar diagram dropped in the middle. Sure, you can use some picture processor to create a much nicer drawing; but in the real world, using pic or any of its TEX equivalents can be time-consuming and painful. Star-and-bar diagrams aren’t pretty, but they are easy.
Picture mode turns the area being edited into a kind of drawing board consisting of columns and rows. In picture mode, you can create simple pictures (such as the one in Figure 8-2) using keyboard characters without having them “rearranged” by the word-wrap capabilities of auto-fill mode, for example.
![Drawing in picture mode](/api/v2/epubs/1565921526/files/tagoreillycom20070307oreillyimages164088.png)
Figure 9-2. Drawing in picture mode
To enter picture mode, type ESC x edit-picture. The word Picture appears on the mode line, followed by the default drawing direction (more on that shortly). Typing C-c C-c exits picture mode and returns ...
Get Learning GNU Emacs, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.