This is my third try to get into emacs. Is difficult with all this keyboard related commands, but if you take it with love it kind of works.
sources:
http://venkys-dotplan.blogspot.com/2009/05/complete-newbies-guide-to-emacs-and.html
http://www.enigmacurry.com/2009/01/21/autocompleteel-python-code-completion-in-emacs/
(add-hook 'python-mode-hook '(lambda () (define-key python-mode-map “\C-m” 'newline-and-indent)))
Add the following lines to your .emacs file
(setq load-path (append (list nil "~/.emacs.d/emacs") load-path))
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://www.rwdev.eu/articles/emacspyeng
(require 'pycomplete) (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (autoload 'python-mode "python-mode" "Python editing mode." t) (autoload 'pymacs-load "pymacs" nil t) (autoload 'pymacs-eval "pymacs" nil t) (autoload 'pymacs-apply "pymacs") (autoload 'pymacs-call "pymacs") (setq interpreter-mode-alist(cons '("python" . python-mode) interpreter-mode-alist))
This list is based on what I feel I need from an editor right now (may-2009), hope it can be useful for someone.
C-x c - Exit
C-x C-s - Save changes
C-g - Quits what you are doing
C-l - Recenters
C-u cmd - Repeats the command u times
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
C-x r space name - Names a position
C-x r j name - Jumps to a named position
C-x ( - Start recording commands (macro)
C-x ) - Stops recording commands (macro)
C-x e - Executes macro (continue pressing e executes the macro again and again)
C-x k - kill-buffer
C-x 0 - Closes the current window
C-x 1 - Closes all the other windows
C-x o - Change window
C-x C-b - list-buffers
C-x ^ - enlarge-window
C-c C-z - Starts python console
C-c C-l - Execute python program
C-c d - Over something, gives you the documentation
C-c C-h - Help for the minor and major mode (yas, rope, python)
M-x transient-mark-mode
C-M-space - “Marks what you want”
M-h - Marks current paragraph
C-w - Deletes
Esc-w - Copy
C-y - Paste
C-x r s - Saves the marked region to a register
C-g - To deactivate the mark
M-x ispell-change-dictionary
M-x ispell
External links with more commands are:
http://www.cs.rutgers.edu/LCSR-Computing/some-docs/emacs-chart.html
http://sip.clarku.edu/tutorials/intro_emacs.html
http://ccrma.stanford.edu/guides/package/emacs/emacs.html
http://www.cs.cmu.edu/cgi-bin/info2www?(emacs)Mark