emacs_tutorial
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
emacs_tutorial [2021/03/21 06:23] – [Windows] hc9 | emacs_tutorial [2021/03/21 06:35] – [Basic Commands] hc9 | ||
---|---|---|---|
Line 30: | Line 30: | ||
| C-g | Abort the current command | | | C-g | Abort the current command | | ||
| C-l | Redraw and center screen at cursor | | | C-l | Redraw and center screen at cursor | | ||
- | | M-< | Go to start of buffer | | + | | M-<nowiki><</ |
- | | M-> | Go to end of buffer | | + | | M-< |
| Backspace | Delete previous character | | | Backspace | Delete previous character | | ||
Line 125: | Line 125: | ||
===== Dired Mode ===== | ===== Dired Mode ===== | ||
- | If you type the name of a directory after a "C-x C-f" | + | If you type the name of a directory after a '' |
| Left, right arrow keys or p, n | Previous and next file, respectively | | | Left, right arrow keys or p, n | Previous and next file, respectively | | ||
Line 146: | Line 146: | ||
===== Shell Modes ===== | ===== Shell Modes ===== | ||
- | It is possible to run a shell from within Emacs; there are a few different ways to do so. The easiest way is to type "M-x shell". This creates a a buffer called *shell* with a shell prompt. Shell commands you type are sent to a system shell and the output displayed in the shell buffer. One thing you'll notice in shell mode is that the arrow keys move you around the buffer - they don't access command history as they do in most shells. To access command history, use "M-p" | + | It is possible to run a shell from within Emacs; there are a few different ways to do so. The easiest way is to type '' |
- | One of the drawbacks of shell-mode is that it is not suitable for full-screen applications (like less, lynx, mutt or pine), to run these inside of Emacs, you need to use a terminal mode. Type "M-x ansi-term", and specify which shell you would like to run (your default will be the shell you are using, e.g. "/ | + | One of the drawbacks of shell-mode is that it is not suitable for full-screen applications (like less, lynx, mutt or pine), to run these inside of Emacs, you need to use a terminal mode. Type '' |
- | On platforms without an underlying shell (e.g., Windows), Emacs has a terminal emulator written entirely in Emacs Lisp. To enter it, type "M-x eshell". While not suitable for full-screen applications, | + | On platforms without an underlying shell (e.g., Windows), Emacs has a terminal emulator written entirely in Emacs Lisp. To enter it, type '' |
Here are the commands we discussed above: | Here are the commands we discussed above: | ||
Line 160: | Line 160: | ||
===== Emacs Startup and Configuration ===== | ===== Emacs Startup and Configuration ===== | ||
- | When Emacs starts it will load a file named ".emacs" | + | When Emacs starts it will load a file named '' |
<file config .emacs> | <file config .emacs> | ||
Line 204: | Line 204: | ||
</ | </ | ||
- | The above example gives you a good idea of what can be done in a ".emacs" | + | The above example gives you a good idea of what can be done in a '' |
===== Browsing the Web in Emacs with w3m ===== | ===== Browsing the Web in Emacs with w3m ===== | ||
- | [[http:// | + | [[http:// |
< | < | ||
Line 214: | Line 214: | ||
</ | </ | ||
- | Then restart emacs, or place the cursor at the end of each line in turn and press "C-x e". Then you can open a new w3m buffer with "M-x w3m". The basic key bindings are as follows (note that these are taken from the w3m-mode help page, which can be accessed at any time in a new window with "C-h m"): | + | Then restart emacs, or place the cursor at the end of each line in turn and press '' |
| M-x w3m | Start browsing web with emacs-w3m. | | | M-x w3m | Start browsing web with emacs-w3m. | | ||
Line 249: | Line 249: | ||
| M-a | Add the url under point to a new bookmark. | | | M-a | Add the url under point to a new bookmark. | | ||
- | There are many more features in w3m-mode, the mode help text details them all with keybindings. To end your session and close all w3m buffers, just press "Q" | + | There are many more features in w3m-mode, the mode help text details them all with keybindings. To end your session and close all w3m buffers, just press '' |
===== Where to Go From Here ===== | ===== Where to Go From Here ===== |
emacs_tutorial.txt · Last modified: 2021/03/21 06:38 by hc9