emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 76c10da 078/108: Don't turn on if electric-indent-inhibit


From: Artur Malabarba
Subject: [elpa] master 76c10da 078/108: Don't turn on if electric-indent-inhibit is set
Date: Wed, 25 Mar 2015 18:39:15 +0000

branch: master
commit 76c10dac8256d12fc9906e9c732fce3c2098c4af
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    Don't turn on if electric-indent-inhibit is set
---
 aggressive-indent.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 5589f8d..6560c19 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -368,7 +368,9 @@ strings."
   (if mode
       (if (and global-aggressive-indent-mode
                (or (cl-member-if #'derived-mode-p excluded-modes)
-                   buffer-read-only))
+                   buffer-read-only
+                   (and (boundp 'electric-indent-inhibit)
+                        electric-indent-inhibit)))
           (mode -1)
         ;; Should electric indent be ON or OFF?
         (if (or (eq dont-electric-modes t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]