]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't activate in text-mode or fundamental-mode
authorArtur Malabarba <bruce.connor.am@gmail.com>
Mon, 2 Feb 2015 13:48:50 +0000 (11:48 -0200)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Mon, 2 Feb 2015 13:48:50 +0000 (11:48 -0200)
aggressive-indent.el

index 1466df9a1e67d5792f569d3765af4a553a4cb468..b7f67fa6f451b04f45e43198a9c8a686a047ef6c 100644 (file)
@@ -370,6 +370,7 @@ strings."
   (if mode
       (if (and global-aggressive-indent-mode
                (or (cl-member-if #'derived-mode-p excluded-modes)
+                   (memq major-mode '(text-mode fundamental-mode))
                    buffer-read-only))
           (mode -1)
         ;; Should electric indent be ON or OFF?