# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1420818938 18000 # Node ID 046b82e29041cb4fb215a651ffc5580c677ca5ca # Parent 0126fee1787e62cf95d4d6b2ba994828c8d081be Swap C-j and in python-mode diff --git a/dotemacs.el b/dotemacs.el --- a/dotemacs.el +++ b/dotemacs.el @@ -93,6 +93,13 @@ (lambda () (local-set-key (kbd "") 'dired-find-alternate-file))) +;; I want to indent the next line in python-mode. This swaps +;; the standard definitions of and C-j. +(add-hook 'python-mode-hook + (lambda () + (local-set-key (kbd "") 'newline-and-indent) + (local-set-key (kbd "C-j") 'newline))) + (setq auto-mode-alist (append '(