-
Notifications
You must be signed in to change notification settings - Fork 0
/
aggressive-indent.html
81 lines (64 loc) · 3.73 KB
/
aggressive-indent.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE HTML PUBLIC>
<html lang="en" xml:lang="en">
<head>
<title>GNU ELPA - aggressive-indent</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" type="image/png" href="../favicon.png">
<link rel="stylesheet" href="//code.cdn.mozilla.net/fonts/fira.css">
<link rel="stylesheet" type="text/css" href="../layout.css">
<script src="../javascript/jquery.min.js" type="text/javascript"></script>
<script src="../javascript/jquery.filtertable.min.js" type="text/javascript"></script>
<script src="../javascript/package-search.js" type="text/javascript"></script>
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,width=device-width" />
</head>
<body>
<div class="wrapper">
<div class="header small">
<div class="container">
<h1><a href="index.html">GNU ELPA</a> - aggressive-indent</h1>
</div>
</div>
<div class="container">
<h2 class="package">aggressive-indent</h2><dl><dt>Description</dt><dd>Minor mode to aggressively keep your code always indented</dd>
<dt>Latest</dt> <dd><a href="aggressive-indent-1.8.3.tar">aggressive-indent-1.8.3.tar</a>, 2021-May-19, 600 KiB</dd>
<dt>Maintainer</dt> <dd>Artur Malabarba <[email protected]></dd>
<dt>Home page</dt> <dd><a href="https://github.com/Malabarba/aggressive-indent-mode">https://github.com/Malabarba/aggressive-indent-mode</a></dd>
<dt>Browse ELPA's repository</dt> <dd><a href="https://git.savannah.gnu.org/cgit/emacs/elpa.git/?h=externals/aggressive-indent">CGit</a> or <a href="https://git.savannah.gnu.org/gitweb/?p=emacs/elpa.git;a=shortlog;h=refs/heads/externals/aggressive-indent">Gitweb</a></dd>
</dl><p>To install this package, run in Emacs:</p>
<pre>M-x <span class="kw">package-install</span> RET <span class="kw">aggressive-indent</span> RET</pre><h2>Full description</h2><pre>
`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.
`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'.
### Instructions ###
This package is available fom Melpa, you may install it by calling
M-x package-install RET aggressive-indent
Then activate it with
(add-hook 'emacs-lisp-mode-hook #'aggressive-indent-mode)
(add-hook 'css-mode-hook #'aggressive-indent-mode)
You can use this hook on any mode you want, `aggressive-indent' is not
exclusive to emacs-lisp code. In fact, if you want to turn it on for
every programming mode, you can do something like:
(global-aggressive-indent-mode 1)
(add-to-list 'aggressive-indent-excluded-modes 'html-mode)
### Manual Installation ###
If you don't want to install from Melpa, you can download it manually,
place it in your `load-path' and require it with
(require 'aggressive-indent)
</pre>
<div class="footer">
<div class="container">
<p>Copyright 2016-2021 <a href="https://fsf.org">Free Software Foundation</a>, Inc.</p>
<p>Design provided by <a href="https://nicolas.petton.fr">Nicolas Petton</a></p>
<p>
This website is licensed under the
<a href="https://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0</a>
International License.
</p>
<p><a href="/jslicense.html" data-jslicense="1">JavaScript Licenses</a></p>
</div>
</div>
</body>