[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.
- [elpa] master 3a4b76a 011/108: Merge branch 'dev', (continued)
- [elpa] master 3a4b76a 011/108: Merge branch 'dev', Artur Malabarba, 2015/03/25
- [elpa] master 027e7ed 012/108: Add variable dont-indent-if, so the user can prevent indentation., Artur Malabarba, 2015/03/25
- [elpa] master f23224a 014/108: Reactivate `electric-indent-mode'., Artur Malabarba, 2015/03/25
- [elpa] master 964bfae 016/108: Add yaml mode to excluded modes., Artur Malabarba, 2015/03/25
- [elpa] master 36abeb1 002/108: First Commit., Artur Malabarba, 2015/03/25
- [elpa] master 759f365 018/108: Merge pull request #8 from tuhdo/master, Artur Malabarba, 2015/03/25
- [elpa] master eaa8cee 013/108: Whitespace, Artur Malabarba, 2015/03/25
- [elpa] master 2e993b8 008/108: Remove trailing whitespace, Artur Malabarba, 2015/03/25
- [elpa] master a1429e5 019/108: Fix variable I forgot to namespace, Artur Malabarba, 2015/03/25
- [elpa] master 7cd4e57 015/108: Fix Version, Artur Malabarba, 2015/03/25
- [elpa] master aebe081 020/108: Improve css-mode support,
Artur Malabarba <=
- [elpa] master 1c74518 023/108: Fix last-command -> this-command bug, Artur Malabarba, 2015/03/25
- [elpa] master ebcafdb 022/108: Version Bump, Artur Malabarba, 2015/03/25
- [elpa] master a07019e 021/108: Move up the screencast, Artur Malabarba, 2015/03/25
- [elpa] master 8af72c5 024/108: Factor out the soft part into a macro., Artur Malabarba, 2015/03/25
- [elpa] master 7c3cb86 017/108: Add demo screenshot, Artur Malabarba, 2015/03/25
- [elpa] master 6a4296b 028/108: Add demo for non-Lisp mode, Artur Malabarba, 2015/03/25
- [elpa] master 215ddf7 030/108: Don't use do-softly for now., Artur Malabarba, 2015/03/25
- [elpa] master 81fadf1 029/108: Add modes to prefer defun., Artur Malabarba, 2015/03/25
- [elpa] master e4d3601 026/108: Implement a smarter engine for non-lisp modes., Artur Malabarba, 2015/03/25
- [elpa] master e774765 031/108: Merge branch 'region-indent', Artur Malabarba, 2015/03/25