29 Printing from Emacs
If you want to use the printer named lpt1 whenever you print from Emacs, you would want to set lpr-switches to -Plpt1. To do so, add the following line to your .emacs file: (setq lpr-switches '("-...
If you want to use the printer named lpt1 whenever you print from Emacs, you would want to set lpr-switches to -Plpt1. To do so, add the following line to your .emacs file: (setq lpr-switches '("-...
M-x man selecting Man from the Help menu Simply type: M-x man Enter Unix-command-name Enter
To use the Java build tool ant as your default compile command, just add this line: (setq 'compile-command "ant -emacs") Compilation mode commands Keystrokes Command name ...
Displaying the Calendar M-x calendar By default, weeks start on Sunday. If you’d like them to start on Monday instead, type M-x set-variable calendar-week-start Enter 1 Enter. You enter the calen...
comment M-; M-j M-x comment-region M-x kill-comment Enter Indenting Code Basic indentation commands Keystrokes Command name Action C-M-\ ...
You can also put any file in C mode manually by typing M-x c-mode Enter. Similarly, you can use c++-mode to put a buffer into C++ mode. Motion Commands Advanced C motion commands ...
VC commands Keystrokes Command name Action C-x v v vc-next-action Go to the next logical version control state. C-x v d...
Comparing with Ediff Ediff commands Keystrokes Command name Action Space or n ediff-next-difference Move to the next difference betwee...
Working with Groups and Subtrees of Files C-x v d (for vc-directory)
Simply invoke Emacs with the command-line option -q, and Emacs will not run your .emacs file. .emacs exsiting file Saving .emacs Restart the emacs M-x load-file ~/.emacs Enter