[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. 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++ - C/C++
- Clojure - Clojure
@ -55,21 +57,36 @@ To use a module you simple have to require it. No new concepts. No magic.
- Common Lisp - Common Lisp
- CSS - CSS
- Emacs-Lisp - Emacs-Lisp
- [ERC](erc.md)
- Erlang - Erlang
- Elixir - Elixir
- Go - Go
- Haskell - Haskell
- JavaScript - JavaScript
- LaTeX - LaTeX
- Lisp Base - Lisp Base (common foundation for Lisp modules)
- Markdown - Markdown
- OCaml
- Org Mode - Org Mode
- Perl - Perl
- [Python](python.md) - [Python](python.md)
- [Programming Base](programming.md) (common foundation for programming modules)
- Ruby - Ruby
- Rust - Rust
- Scala - Scala
- Scheme - Scheme
- SCSS - SCSS
- Shell
- TypeScript
- Web - 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 # Prelude Python
!!! Note
This module builds on top of the shared [Programming](programming.md) module.
## Python Mode ## Python Mode
Emacs comes with Python programming support through the built-in 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 look at the Python mode key bindings. Alternatively look at the
menu bar entries under Python. To toggle the menu bar press `F12`. menu bar entries under Python. To toggle the menu bar press `F12`.

View file

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