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

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

[elpa] master fadd08f 080/108: Readme


From: Artur Malabarba
Subject: [elpa] master fadd08f 080/108: Readme
Date: Wed, 25 Mar 2015 18:39:16 +0000

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

    Readme
    
    Fixes #36
---
 README.md |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index 4f5ffce..183a944 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ every programming mode, you can do something like:
     (global-aggressive-indent-mode 1)
     (add-to-list 'aggressive-indent-excluded-modes 'html-mode)
 
-### Manual Installation ###
+#### Manual Installation ####
 
 If you don't want to install from Melpa, you can download it manually,
 place it in your `load-path` along with its two dependencies:
@@ -47,3 +47,17 @@ place it in your `load-path` along with its two dependencies:
 Then require it with:
 
     (require 'aggressive-indent)
+
+### Customization ###
+
+The variable `aggressive-indent-dont-indent-if` lets you customize
+when you **don't** want indentation to happen.
+For instance, if you think it's annoying that lines jump around in
+`c++-mode` because you haven't typed the `;` yet, you could add the
+following clause:
+
+    (add-to-list
+     'aggressive-indent-dont-indent-if
+     '(and (derived-mode-p 'c++-mode)
+           (null (string-match "\\([;{}]\\|\\b\\(if\\|for\\|while\\)\\b\\)"
+                               (thing-at-point 'line)))))



reply via email to

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