emacs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
emacs [2009/05/21 14:58] – memeruiz | emacs [2021/02/01 05:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 23: | Line 23: | ||
* For autocompletition during edition, follow the instructions from [[http:// | * For autocompletition during edition, follow the instructions from [[http:// | ||
* If you install rope stuff then getting the python documentation should work. For getting the rope commands help press C-c d . | * If you install rope stuff then getting the python documentation should work. For getting the rope commands help press C-c d . | ||
+ | |||
+ | ===== Adding a directory to the emacs load path ===== | ||
+ | |||
+ | Add the following lines to your .emacs file | ||
+ | |||
+ | (setq load-path | ||
+ | (append (list nil " | ||
+ | load-path)) | ||
+ | |||
+ | ===== Emacs and python, a better way ===== | ||
+ | |||
+ | The former method is nice but makes the tab key to interfere with the normal operation of the tab key. Using the following method, emacs and python work better together. | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | - Install Pymacs | ||
+ | - Copy files python-mode.el and pycomplete.el on your Emacs load_path (e.g. ~/ | ||
+ | - Copy file pycomplete.py on your PYTHONPATH (e.g. / | ||
+ | - Copy the following settings to your .emacs file | ||
+ | |||
+ | (require ' | ||
+ | (setq auto-mode-alist (cons ' | ||
+ | (autoload ' | ||
+ | (autoload ' | ||
+ | (autoload ' | ||
+ | (autoload ' | ||
+ | (autoload ' | ||
+ | (setq interpreter-mode-alist(cons ' | ||
+ | | ||
+ | |||
===== Keybindings emacs command list ===== | ===== Keybindings emacs command list ===== | ||
Line 29: | Line 59: | ||
C-x c - Exit\\ | C-x c - Exit\\ | ||
- | C-k - Delete rest of line\\ | + | C-x C-s - Save changes\\ |
- | C-e - End of line\\ | + | |
- | C-a - Line start\\ | + | |
- | C-s - Save changes\\ | + | |
C-g - Quits what you are doing\\ | C-g - Quits what you are doing\\ | ||
+ | C-l - Recenters\\ | ||
+ | C-u cmd - Repeats the command u times \\ | ||
+ | |||
+ | ==== Editing ==== | ||
+ | |||
+ | C-k - Delete rest of line\\ | ||
+ | C-e - Move to End of line\\ | ||
+ | C-a - move to Line start\\ | ||
+ | ESC C-\ indent-region\\ | ||
+ | C-o - insert-line\\ | ||
+ | C-d - delete current character\\ | ||
+ | M-x - query-replace\\ | ||
+ | |||
+ | ==== Macro stuff ==== | ||
+ | |||
C-x r space name - Names a position\\ | C-x r space name - Names a position\\ | ||
C-x r j name - Jumps to a named position\\ | C-x r j name - Jumps to a named position\\ | ||
Line 40: | Line 82: | ||
C-x e - Executes macro (continue pressing e executes the macro again and again)\\ | C-x e - Executes macro (continue pressing e executes the macro again and again)\\ | ||
- | ==== Buffer ==== | + | |
+ | ==== Buffer | ||
C-x k - kill-buffer\\ | C-x k - kill-buffer\\ | ||
Line 47: | Line 90: | ||
C-x o - Change window\\ | C-x o - Change window\\ | ||
C-x C-b - list-buffers\\ | C-x C-b - list-buffers\\ | ||
+ | C-x ^ - enlarge-window\\ | ||
+ | |||
+ | [[http:// | ||
==== Python specific ==== | ==== Python specific ==== | ||
Line 65: | Line 111: | ||
C-x r s - Saves the marked region to a register\\ | C-x r s - Saves the marked region to a register\\ | ||
C-g - To deactivate the mark\\ | C-g - To deactivate the mark\\ | ||
+ | ==== Spelling ==== | ||
+ | |||
+ | M-x ispell-change-dictionary\\ | ||
+ | M-x ispell\\ | ||
+ | |||
External links with more commands are:\\ | External links with more commands are:\\ |
emacs.1242917922.txt.gz · Last modified: 2021/02/01 05:55 (external edit)