Skip to content

Commit 9523c6d

Browse files
committed
Fix all markdownlint warnings across docs and README
- Rewrap long lines to stay under 80 chars (MD013) - Normalize heading style to atx in README (MD003) - Move heading before badges in README (MD041) - Add language specifiers to fenced code blocks (MD040) - Fix table alignment (MD060) - Replace non-descriptive "[here]" link text (MD059) - Disable MD046/MD060 in config (MkDocs admonitions and mixed table styles conflict with these rules)
1 parent 642c412 commit 9523c6d

24 files changed

Lines changed: 344 additions & 187 deletions

.markdownlint-cli2.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ config:
99
style: ordered
1010
# Allow inline HTML
1111
MD033: false
12+
# Disable code-block-style: MkDocs admonitions use 4-space
13+
# indentation that conflicts with this rule
14+
MD046: false
15+
# Disable table column alignment: the project uses both
16+
# pipe-style and headerless table formats
17+
MD060: false

README.md

Lines changed: 97 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
# Emacs Prelude
2+
13
[![License GPL 3][badge-license]](http://www.gnu.org/licenses/gpl-3.0.txt)
24
[![CI](https://github.com/bbatsov/prelude/workflows/CI/badge.svg)](https://github.com/bbatsov/prelude/actions/workflows/ci.yml)
35
[![Patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://www.patreon.com/bbatsov)
46

5-
Emacs Prelude
6-
=============
7-
87
Prelude is an Emacs distribution that aims to enhance the default
98
Emacs experience. Prelude alters a lot of the default settings,
109
bundles a plethora of additional packages and adds its own core
1110
library to the mix. The final product offers an easy to use Emacs
1211
configuration for Emacs newcomers and lots of additional power for
1312
Emacs power users.
1413

15-
Prelude is compatible **ONLY with GNU Emacs 29.1+**. In general you're
16-
advised to always run Prelude with the latest stable Emacs release.
14+
Prelude is compatible **ONLY with GNU Emacs 29.1+**. In general
15+
you're advised to always run Prelude with the latest stable
16+
Emacs release.
1717

1818
You can support the development of Prelude via
1919
[GitHub Sponsors](https://github.com/sponsors/bbatsov),
@@ -26,17 +26,20 @@ You can support the development of Prelude via
2626
- Improved UX, that's still in line with Emacs traditions
2727
- Sane defaults of baseline Emacs functionality
2828
- Automatic installation of many major programming modes on demand
29-
- A curated set of 3rd party packages to enhance the base functionality
29+
- A curated set of 3rd party packages to enhance the base
30+
functionality
3031
- Simple modular architecture
3132
- Easy customization
3233

33-
Check out our [user manual](https://prelude.emacsredux.com) for more information.
34+
Check out our [user manual](https://prelude.emacsredux.com)
35+
for more information.
3436

3537
## Fast Forward
3638

37-
Assuming you're using an Unix-like OS (`*BSD`, `GNU/Linux`, `macOS`, `Solaris`,
38-
etc), you already have a recent version of Emacs installed, as well as `git` & `curl` you
39-
can skip the whole manual and just type in your favorite shell the
39+
Assuming you're using an Unix-like OS (`*BSD`, `GNU/Linux`,
40+
`macOS`, `Solaris`, etc), you already have a recent version of
41+
Emacs installed, as well as `git` & `curl` you can skip the
42+
whole manual and just type in your favorite shell the
4043
following command:
4144

4245
```shell
@@ -50,27 +53,31 @@ source repository and the installation directory. To change the
5053
installation directory:
5154

5255
```shell
53-
export PRELUDE_INSTALL_DIR="$HOME/.emacs.d" && curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
56+
export PRELUDE_INSTALL_DIR="$HOME/.emacs.d" && \
57+
curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
5458
```
5559

5660
To change the source repository:
5761

5862
```shell
59-
export PRELUDE_URL="https://github.com/yourname/prelude.git" && curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
63+
export PRELUDE_URL="https://github.com/yourname/prelude.git" && \
64+
curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
6065
```
6166

6267
Note that the installer will back up any existing `.emacs` file or
6368
`.emacs.d` since it will unpack Prelude's code in `.emacs.d`. If
64-
you're doing a manual install make sure you don't have a `.emacs` file
65-
or back up your existing `.emacs.d` directory manually.
69+
you're doing a manual install make sure you don't have a `.emacs`
70+
file or back up your existing `.emacs.d` directory manually.
6671

67-
**Important:** Don't forget to adjust your `prelude-modules.el` file in your personal directory
72+
**Important:** Don't forget to adjust your
73+
`prelude-modules.el` file in your personal directory
6874
once the installation is done. By default most of the modules
6975
that ship with Prelude are **not** loaded.
7076

71-
### Try Before You "Buy"
77+
## Try Before You "Buy"
7278

73-
If you're using Emacs 29+ there's a simple way to try Prelude (or any other Emacs distro for that matter).
79+
If you're using Emacs 29+ there's a simple way to try Prelude
80+
(or any other Emacs distro for that matter).
7481
Just clone Prelude's repo somewhere and do the following:
7582

7683
```shell
@@ -84,61 +91,85 @@ Prelude's philosophy is quite simple:
8491
- simple
8592
- easy to understand and extend
8693
- stable
87-
- a foundation for you to build upon, as opposed to some end-user product
94+
- a foundation for you to build upon, as opposed to some
95+
end-user product
8896

89-
This means that it intentionally doesn't pack all the bells and whistles that it could.
90-
Prelude aims to enhance the classic Emacs experience without deviating a lot from it - e.g.
91-
it would never enable something like `evil-mode` (vim keybindings) by default and so on.
97+
This means that it intentionally doesn't pack all the bells
98+
and whistles that it could. Prelude aims to enhance the classic
99+
Emacs experience without deviating a lot from it - e.g.
100+
it would never enable something like `evil-mode`
101+
(vim keybindings) by default and so on.
92102

93-
All the third-party packages that it bundles are carefully vetted and are known to be of
94-
good quality and to have reliable maintainers. That generally means that Prelude's unlikely
95-
to immediate adopt some shiny new package, that has established tried and true alternatives.
103+
All the third-party packages that it bundles are carefully
104+
vetted and are known to be of good quality and to have reliable
105+
maintainers. That generally means that Prelude's unlikely
106+
to immediate adopt some shiny new package, that has established
107+
tried and true alternatives.
96108

97109
In practice this translates to the following:
98110

99-
- Prelude is less opinionated than distros like Spacemacs and Doom Emacs (meaning it's closer to the standard Emacs experience)
111+
- Prelude is less opinionated than distros like Spacemacs and
112+
Doom Emacs (meaning it's closer to the standard Emacs
113+
experience)
100114
- Prelude installs relatively few additional packages by default
101-
- Most modules in Prelude are opt-in instead of opt-out (you'll notice the default config enables only a handful of modules)
102-
- Most modules (e.g. modules for programming languages) are pretty short and feature setup only for essential packages (in some cases that be just the major mode for the language in question)
103-
- You don't really need to track Prelude's upstream - you're encouraged to just fork it and use it as the basis for your own configuration.
104-
105-
Remember that the ultimate goal of every Emacs user is to create an Emacs setup that reflects their own experience, needs, goals and ideas. Just like Lisp,
106-
Emacs is nothing but a raw building material for the perfect editing experience.
107-
108-
More installation options are discussed [here](https://prelude.emacsredux.com/en/latest/installation/).
115+
- Most modules in Prelude are opt-in instead of opt-out
116+
(you'll notice the default config enables only a handful of
117+
modules)
118+
- Most modules (e.g. modules for programming languages) are
119+
pretty short and feature setup only for essential packages
120+
(in some cases that be just the major mode for the language
121+
in question)
122+
- You don't really need to track Prelude's upstream - you're
123+
encouraged to just fork it and use it as the basis for your
124+
own configuration.
125+
126+
Remember that the ultimate goal of every Emacs user is to
127+
create an Emacs setup that reflects their own experience,
128+
needs, goals and ideas. Just like Lisp, Emacs is nothing but a
129+
raw building material for the perfect editing experience.
130+
131+
More installation options are discussed in the
132+
[installation guide](https://prelude.emacsredux.com/en/latest/installation/).
109133

110134
## User Manual
111135

112-
While Emacs Prelude is pretty simple at its core, it does have some specifics that
113-
are worth learning - e.g. configuration options, load order of modules and personal settings
114-
and so on.
136+
While Emacs Prelude is pretty simple at its core, it does have
137+
some specifics that are worth learning - e.g. configuration
138+
options, load order of modules and personal settings and so on.
115139

116-
Check out our [user manual](https://prelude.emacsredux.com) for more information.
140+
Check out our [user manual](https://prelude.emacsredux.com)
141+
for more information.
117142

118-
You can also find a lot of information about specific Prelude features and the rationale behind them on
119-
my Emacs blog [Emacs Redux](https://emacsredux.com).
143+
You can also find a lot of information about specific Prelude
144+
features and the rationale behind them on my Emacs blog
145+
[Emacs Redux](https://emacsredux.com).
120146

121147
## crux and super-save
122148

123-
A lot of utility commands that used to be part of Prelude were eventually extracted to the [crux](https://github.com/bbatsov/crux) package,
124-
so they'd be easily available to more people.
149+
A lot of utility commands that used to be part of Prelude were
150+
eventually extracted to the [crux][crux-url] package, so they'd
151+
be easily available to more people.
125152
These days Prelude simply depends on that package.
126153

127-
The [super-save](https://github.com/bbatsov/super-save) package also used to be part of Prelude in the past.
154+
The [super-save][super-save-url] package also used to be part
155+
of Prelude in the past.
156+
157+
[crux-url]: https://github.com/bbatsov/crux
158+
[super-save-url]: https://github.com/bbatsov/super-save
128159

129160
## Upgrading to Prelude 2.0
130161

131162
Prelude 2.0 is a major release that modernizes the entire
132163
distribution around Emacs 29+ features. Here's what you need to know:
133164

134-
### Emacs 29.1 is now required
165+
## Emacs 29.1 is now required
135166

136167
Prelude no longer supports Emacs 28 or older. If you haven't
137168
upgraded yet, now's the time. Emacs 29 brings built-in tree-sitter,
138169
Eglot (LSP client), `use-package`, and many other improvements that
139170
Prelude 2.0 takes full advantage of.
140171

141-
### Tree-sitter support
172+
## Tree-sitter support
142173

143174
For built-in modes that ship both classic and tree-sitter variants
144175
(e.g., `python-mode` / `python-ts-mode`), Prelude automatically
@@ -154,7 +185,7 @@ To install tree-sitter grammars, use
154185

155186
[ts-grammar]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Language-Grammar.html
156187

157-
### Built-in LSP via Eglot
188+
## Built-in LSP via Eglot
158189

159190
Prelude 2.0 adds LSP support to most language modules using Eglot
160191
(built-in since Emacs 29) as the default client. If you were
@@ -164,9 +195,10 @@ previously using `prelude-lsp` with lsp-mode, note that:
164195
- Set `(setq prelude-lsp-client 'lsp-mode)` in your personal
165196
config to keep using lsp-mode.
166197
- The default is now Eglot -- no extra packages needed.
167-
- Eglot keybindings live under `C-c C-l` (rename, code actions, format, etc.).
198+
- Eglot keybindings live under `C-c C-l` (rename, code
199+
actions, format, etc.).
168200

169-
### Removed packages and modules
201+
## Removed packages and modules
170202

171203
Several outdated packages have been replaced by built-in alternatives:
172204

@@ -183,32 +215,35 @@ Several outdated packages have been replaced by built-in alternatives:
183215
| `go-projectile` | Removed (unmaintained) |
184216
| `prelude-selectrum` | Use `prelude-vertico` instead |
185217

186-
### Keybinding changes
218+
## Keybinding changes
187219

188220
- `C-x p` no longer opens `proced` (reserved for `project.el`).
189221
- `C-x C-m` runs `execute-extended-command` instead of `smex`.
190222
- `C-c c` is bound to `org-capture`.
191-
- `C-c C-l` prefix is used for Eglot commands in programming modes.
223+
- `C-c C-l` prefix is used for Eglot commands in programming
224+
modes.
192225

193-
### What you should do
226+
## What you should do
194227

195228
1. **Update Emacs** to 29.1 or newer.
196-
2. **Pull the latest Prelude** and restart Emacs. Packages will be updated automatically.
197-
3. **Review your `prelude-modules.el`** -- if you had `prelude-lsp`
198-
enabled, rename it to `prelude-lsp-mode`. If you want Eglot
199-
(recommended), you don't need any LSP module enabled.
229+
2. **Pull the latest Prelude** and restart Emacs. Packages will
230+
be updated automatically.
231+
3. **Review your `prelude-modules.el`** -- if you had
232+
`prelude-lsp` enabled, rename it to `prelude-lsp-mode`. If
233+
you want Eglot (recommended), you don't need any LSP module
234+
enabled.
200235
4. **Install tree-sitter grammars** for your languages of choice
201236
(optional but recommended).
202-
5. **Check your personal config** for references to removed packages
203-
(`nlinum`, `anzu`, `epl`, `anaconda-mode`, `js2-mode`, `tide`,
204-
`alchemist`).
237+
5. **Check your personal config** for references to removed
238+
packages (`nlinum`, `anzu`, `epl`, `anaconda-mode`,
239+
`js2-mode`, `tide`, `alchemist`).
205240

206241
## Known issues
207242

208243
Check out the project's
209244
[issue list](https://github.com/bbatsov/prelude/issues?sort=created&direction=desc&state=open)
210-
a list of unresolved issues. By the way - feel free to fix any of them
211-
and send me a pull request. :-)
245+
a list of unresolved issues. By the way - feel free to fix any
246+
of them and send me a pull request. :-)
212247

213248
## Support
214249

@@ -219,8 +254,9 @@ Support is available via several channels:
219254

220255
## Contributors
221256

222-
Here's a [list](https://github.com/bbatsov/prelude/contributors) of all the people who have contributed to the
223-
development of Emacs Prelude.
257+
Here's a [list](https://github.com/bbatsov/prelude/contributors)
258+
of all the people who have contributed to the development of
259+
Emacs Prelude.
224260

225261
## Bugs & Improvements
226262

docs/faq.md

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,49 @@
22

33
## What's the origin of the name Emacs Prelude?
44

5-
I wanted an Emacs experience that was both as sleek and as powerful
6-
as the legendary sports car [Honda Prelude](https://en.wikipedia.org/wiki/Honda_Prelude).
5+
I wanted an Emacs experience that was both as sleek and as
6+
powerful as the legendary sports car
7+
[Honda Prelude](https://en.wikipedia.org/wiki/Honda_Prelude).
78
I also wanted a name with `el` in it. :-)
89

910
## Why doesn't Prelude use `use-package`?
1011

1112
While `use-package` provides a nice way of structuring your
12-
configuration (especially if you're into single-file setups), it also adds a layer of complexity as it's just a macro
13-
that expands to some "traditional" configuration code. One aspect of `use-package` that's a bit tricky is where to place cross-package configuration, as it can potentially go to different configuration blocks.
14-
15-
Given how modular the structure of Prelude is, there's relatively little to be gained by adopting `use-package` everywhere, but end users are free to use `use-package` for their personal configuration.
13+
configuration (especially if you're into single-file setups),
14+
it also adds a layer of complexity as it's just a macro
15+
that expands to some "traditional" configuration code. One
16+
aspect of `use-package` that's a bit tricky is where to place
17+
cross-package configuration, as it can potentially go to
18+
different configuration blocks.
19+
20+
Given how modular the structure of Prelude is, there's
21+
relatively little to be gained by adopting `use-package`
22+
everywhere, but end users are free to use `use-package` for
23+
their personal configuration.
1624

1725
!!! Note
1826

19-
I have a stripped-down version of Prelude for personal use, based on `use-package` [here](https://github.com/bbatsov/emacs.d).
27+
I have a stripped-down version of Prelude for personal
28+
use, based on `use-package`
29+
[in this repo](https://github.com/bbatsov/emacs.d).
2030
I guess it might be of interest to some of you.
2131

22-
**Update (2023):** There are now plans to include `use-package` in Emacs 29, which will likely increase its prominence. Prelude 1.2 auto-installs `use-package` and newer Prelude modules might make use of `use-package`. `prelude-vertico` is one such example.
32+
**Update (2023):** There are now plans to include
33+
`use-package` in Emacs 29, which will likely increase its
34+
prominence. Prelude 1.2 auto-installs `use-package` and
35+
newer Prelude modules might make use of `use-package`.
36+
`prelude-vertico` is one such example.
2337

2438
## Why does Prelude use MELPA instead of MELPA Stable by default?
2539

26-
Mostly because many package authors/maintainers don't have the habit to cut
27-
"stable" releases of their projects. It seems that's changing for the better
28-
in recent years, so Prelude's defaults might change down the road.
40+
Mostly because many package authors/maintainers don't have
41+
the habit to cut "stable" releases of their projects. It seems
42+
that's changing for the better in recent years, so Prelude's
43+
defaults might change down the road.
2944

3045
## Why is Zenburn the default color theme?
3146

32-
No particular reason other than the fact that I like it a lot and happen to maintain
33-
its Emacs port. I believe it's pretty nice improvement over the default Emacs theme, but your perspective might be different.
47+
No particular reason other than the fact that I like it a lot
48+
and happen to maintain its Emacs port. I believe it's pretty
49+
nice improvement over the default Emacs theme, but your
50+
perspective might be different.

0 commit comments

Comments
 (0)