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 15:40] – 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 31: | Line 61: | ||
| C-x C-s - Save changes\\ | C-x 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 ==== | ==== Editing ==== | ||
| C-k - Delete rest of line\\ | C-k - Delete rest of line\\ | ||
| - | C-e - End of line\\ | + | C-e - Move to End of line\\ | 
| - | C-a - Line start\\ | + | C-a - move to Line start\\ | 
| - | ESC C-\ indent-region | + | ESC C-\ indent-region\\ | 
| + | C-o - insert-line\\ | ||
| + | C-d - delete current character\\ | ||
| + | M-x - query-replace\\ | ||
| ==== Macro stuff ==== | ==== Macro stuff ==== | ||
| Line 48: | Line 83: | ||
| - | ==== Buffer ==== | + | ==== Buffer | 
| C-x k - kill-buffer\\ | C-x k - kill-buffer\\ | ||
| Line 55: | 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 73: | 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.1242920447.txt.gz · Last modified: 2021/02/01 05:55 (external edit)
                
                