+(defun defuse-electrocuting-indent ()
+ "Disable electric-indent-mode if indent-line-function is daft"
+ (and
+ (eq indent-line-function 'insert-tab)
+ (electric-indent-local-mode 0)))
+(add-hook 'after-change-major-mode-hook 'defuse-electrocuting-indent)
+;