changeset 137:edc837667431

python-mode: disable electric indent Since my python-mode already has newline-and-indent by default bound to RET, I don't need electric-indent for the plane newline command.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 01 Apr 2016 14:36:06 -0400
parents a5726c52b761
children 817e74b09115
files dotemacs.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -191,7 +191,8 @@
 (setq ediff-window-setup-function 'ediff-setup-windows-plain)
 
 ;; Don't like stuff to indent when I don't hit <TAB>
-(add-hook 'c-mode-common-hook (lambda() (setq c-electric-flag nil)))
+(add-hook 'c-mode-common-hook (lambda () (setq c-electric-flag nil)))
+(add-hook 'python-mode-hook (lambda () (electric-indent-mode nil)))
 
 ;; Menus are for wimps
 (menu-bar-mode -1)