Mercurial > hg > dotemacs
changeset 108:046b82e29041
Swap C-j and <RET> in python-mode
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 09 Jan 2015 10:55:38 -0500 |
parents | 0126fee1787e |
children | 6645c3bbefaf |
files | dotemacs.el |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dotemacs.el +++ b/dotemacs.el @@ -93,6 +93,13 @@ (lambda () (local-set-key (kbd "<RET>") 'dired-find-alternate-file))) +;; I want <RET> to indent the next line in python-mode. This swaps +;; the standard definitions of <RET> and C-j. +(add-hook 'python-mode-hook + (lambda () + (local-set-key (kbd "<RET>") 'newline-and-indent) + (local-set-key (kbd "C-j") 'newline))) + (setq auto-mode-alist (append '(