[Docs] Document the programming module

This commit is contained in:
Bozhidar Batsov 2020-04-08 10:15:30 +03:00
parent 6e53b69346
commit 5b836e766a
4 changed files with 41 additions and 4 deletions

View file

@ -47,7 +47,9 @@ Here's a real example.
To use a module you simple have to require it. No new concepts. No magic.
## List of Modules
## Programming Language Modules
The following programming languages have enhanced support in Prelude:
- C/C++
- Clojure
@ -55,21 +57,36 @@ To use a module you simple have to require it. No new concepts. No magic.
- Common Lisp
- CSS
- Emacs-Lisp
- [ERC](erc.md)
- Erlang
- Elixir
- Go
- Haskell
- JavaScript
- LaTeX
- Lisp Base
- Lisp Base (common foundation for Lisp modules)
- Markdown
- OCaml
- Org Mode
- Perl
- [Python](python.md)
- [Programming Base](programming.md) (common foundation for programming modules)
- Ruby
- Rust
- Scala
- Scheme
- SCSS
- Shell
- TypeScript
- Web
- XML
- YAML
## Other Modules
- company
- [ERC](erc.md)
- evil
- helm
- ido
- ivy
- key-chord

View file

@ -0,0 +1,15 @@
# Prelude Programming
Prelude's programming module enables some additional functionality
for `prog-mode` - the parent mode for all major programming modes in Emacs.
Here are some features it provides:
* spell-checking of comments (via `flyspell-prog-mode`)
* auto-pairing of delimiters like parentheses (via `smartparens`)
* visual ques for whitespace (via `whitespace-mode`)
* highlighting code annotations (via `hl-todo`)
* linter integration (via `flycheck`)
* showing current definition name in the modeline (via `which-func`)
Most of this boils down to enabling a bunch of minor modes in `prog-mode-hook`.

View file

@ -1,9 +1,13 @@
# Prelude Python
!!! Note
This module builds on top of the shared [Programming](programming.md) module.
## Python Mode
Emacs comes with Python programming support through the built-in
Python-mode. Whenever you are editing Python code run `C-h m` to
`python-mode`. Whenever you are editing Python code run `C-h m` to
look at the Python mode key bindings. Alternatively look at the
menu bar entries under Python. To toggle the menu bar press `F12`.

View file

@ -10,6 +10,7 @@ pages:
- Modules:
- Overview: modules/index.md
- ERC: modules/erc.md
- Programming: modules/programming.md
- Python: modules/python.md
- FAQ: faq.md
- Troubleshooting: troubleshooting.md