]> code.delx.au - gnu-emacs-elpa/commitdiff
Improve css-mode support
authorArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 23 Oct 2014 09:13:49 +0000 (10:13 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 23 Oct 2014 09:13:49 +0000 (10:13 +0100)
Disable jabber-chat-mode

aggressive-indent.el

index 25122f86096b1d4916aaaf090a0cf0399287f66f..7794a0b1af95857bfc5b0b792c4745eee80c4ed0 100644 (file)
@@ -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.