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

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

[elpa] master aebe081 020/108: Improve css-mode support


From: Artur Malabarba
Subject: [elpa] master aebe081 020/108: Improve css-mode support
Date: Wed, 25 Mar 2015 18:38:52 +0000

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

    Improve css-mode support
    
    Disable jabber-chat-mode
---
 aggressive-indent.el |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 25122f8..7794a0b 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -106,13 +106,13 @@ Please include this in your report!"
 (defcustom excluded-modes
   '(text-mode tabulated-list-mode special-mode
               minibuffer-inactive-mode
-              yaml-mode)
+              yaml-mode jabber-chat-mode)
   "Modes in which `aggressive-indent-mode' should not be activated.
 This variable is only used if `global-aggressive-indent-mode' is
 active. If the minor mode is turned on with the local command,
 `aggressive-indent-mode', this variable is ignored."
   :type '(repeat symbol)
-  :package-version '(aggressive-indent . "0.1"))
+  :package-version '(aggressive-indent . "0.2"))
 
 (defcustom protected-commands '(undo undo-tree-undo undo-tree-redo)
   "Commands after which indentation will NOT be performed.
@@ -147,6 +147,12 @@ This is for internal use only. For user customization, use
      (add-to-list 'aggressive-indent--internal-dont-indent-if
                   'ac-completing)))
 
+(eval-after-load 'css-mode
+  '(add-hook
+    'css-mode-hook
+    (lambda () (unless defun-prompt-regexp 
+            (setq-local defun-prompt-regexp "^[^[:blank:]].*")))))
+
 (defcustom dont-indent-if '()
   "List of variables and functions to prevent aggressive indenting.
 This variable is a list where each element is a lisp form.



reply via email to

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