From 715f793675a2b7d0cf2ec5eeb5c31172ab060f3a Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Tue, 18 Jul 2017 20:28:17 +0300 Subject: [PATCH] gnu: Add emacs-aggressive-indent. * gnu/packages/emacs.scm (emacs-aggressive-indent): New variable. --- gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 43de13057..68c0122b1 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -5200,3 +5200,29 @@ src block.") "@code{emacs-emamux} lets Emacs interact with the @code{tmux} terminal multiplexer.") (license license:gpl3+))) + +(define-public emacs-aggressive-indent + (package + (name "emacs-aggressive-indent") + (version "1.8.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://elpa.gnu.org/packages/aggressive-indent-" + version ".el")) + (sha256 + (base32 + "0jnzccl50x0wapprgwxinp99pwwa6j43q6msn4gv437j7swy8wnj")))) + (build-system emacs-build-system) + (home-page "https://elpa.gnu.org/packages/aggressive-indent.html") + (synopsis "Emacs minor mode that keeps your code always indented") + (description + "@code{electric-indent-mode} is enough to keep your code nicely aligned +when all you do is type. However, once you start shifting blocks around, +transposing lines, or slurping and barfing sexps, indentation is bound to go +wrong. + +@code{aggressive-indent-mode} is a minor mode that keeps your code always +indented. It reindents after every change, making it more reliable than +electric-indent-mode.") + (license license:gpl3+))) -- 2.13.2