changeset 158:c09e8544288c

electric-indent-mode: properly disable globally Holy shit, I've been living with this nonsense since 54767f6d121e back in 2010.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 16 Jun 2017 10:30:45 -0400
parents 2260eaac02ae
children f7b8d9859ca3
files dotemacs.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -208,8 +208,7 @@
 (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 'python-mode-hook (lambda () (electric-indent-mode nil)))
+(setq electric-indent-mode nil)
 
 ;; Menus are for wimps
 (menu-bar-mode -1)