comparison .elisp/settings/40.modes.el @ 140:7fa84e297c84

emacs modes: use comment-indent-new-line for python
author Augie Fackler <durin42@gmail.com>
date Tue, 15 Sep 2009 16:59:47 -0500
parents 8989839d4c6c
children 0487f0197755 fed1da889f84
comparison
equal deleted inserted replaced
139:6b57bb47de2e 140:7fa84e297c84
61 (easy-menu-add-item nil '("Python") ["Debug One Test" nosetests-pdb-one t] 61 (easy-menu-add-item nil '("Python") ["Debug One Test" nosetests-pdb-one t]
62 "Comment Out Region") 62 "Comment Out Region")
63 (easy-menu-add-item nil '("Python") ["-" nil t] "Comment Out Region") 63 (easy-menu-add-item nil '("Python") ["-" nil t] "Comment Out Region")
64 (local-set-key "\M-n" 'nosetests-module) 64 (local-set-key "\M-n" 'nosetests-module)
65 (local-set-key "\M-\C-n" 'nosetests-one) 65 (local-set-key "\M-\C-n" 'nosetests-one)
66 (local-set-key (kbd "RET") 'comment-indent-new-line)
66 ) 67 )
67 (add-hook 'python-mode-hook 'af-python-mode-hook) 68 (add-hook 'python-mode-hook 'af-python-mode-hook)
68 69
69 (add-hook 'compilation-mode-hook '(lambda () (local-set-key "g" 'recompile))) 70 (add-hook 'compilation-mode-hook '(lambda () (local-set-key "g" 'recompile)))