![]() Xemacs is the X-windows version, where you can actually use your mouse to use the menu and/or click somewhere.Įmacs has a built-in tutorial as well: C-h t. Always good to have when you saved something and want to go back to an earlier version. ![]() Wrap (break) long lines of text: M-q or align on both sides M-1 M-qĮmacs creates backup files automatically. Killing a large amount of text (region): Set a mark at start of the region ( C-space), move cursor to the end of the region you want to delete and type C-w. Paste the previously killed part (yank): C-y ![]() Revert to one: C-x 1ĭelete (kill) line/paragraph from cursor onwards: C-k Go to the end of the file: M-> (hit Esc, then while holding Shift hit >)Ĭancel some messed up command sequence: C-g Getting out of emacs (will prompt if you want to save the file): Release the Control key and type an s.) -or-Ĭ-x C-s (this is one of the few commands where you don't really have to release the Control key., so typing an x while holding the Control key, then type an s without releasing the Control key works as well)Ĭ-x C-w (hold the Control key while typing an x followed by a w) Just hit the Esc key, followed by an xĬreate a new or open an existing file (say filename.txt) with emacs from the command-line:Ĭ-x s (type an x while holding the Control key. Example: M-x Unlike with C-x you don't have to hold the Esc key while typing x. Open, Save, and Exit Cancel Navigation Delete Undo. M- means the Meta key, which is normally Escape. Introduction Control and Meta Built-in Emacs Tutorial Open / Create File Basic Commands. Example: C-x type an x while holding the Control key. (global-set-key 'help-command)Ĭ- means press and hold the Control key. (keyboard-translate ?\C-?\C-h) translate DEL to `C-h'. (keyboard-translate ?\C-h ?\C-?) translate `C-h' to DEL Put the following lines in your ~/.emacs file (a settings file for emacs, named. You can check which terminal type you are using by typing: echo $TERMĪnother reason might be that you are trying to start the X11 version of emacs and you don't have X11 packets forwarded. Set the terminal type to 'good old' vt100 by typing: setenv TERM vt100 You are probably using some terminal type the server doesn't know. Here are just a few commands to get you started quick!Įmacs doesn't want to start, complaining about terminal type or something. If the tutorial command doesn’t work, you may have been caught by one of Emacs’s CommonProblems. Type ‘C-h t’ (hold down Control while hitting ‘h’, then hit ‘t’ ). You can do a lot of things with Emacs, which can make it confusing at first. It doesn’t take long to go through, and you will better understand and be more productive in Emacs afterward. Quick Emacs Tutorial - Just the basics Very Basic Emacs TutorialĮmacs is a great text-editor (no unexpected line wrapping as with pico, and much more userfriendly then vi).
0 Comments
Leave a Reply. |