mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 16:12:40 +02:00
docs: emacs
This commit is contained in:
@@ -29,6 +29,13 @@ when in doubt, run `doom sync`!
|
|||||||
2. Better support for Lisp-like Languages.
|
2. Better support for Lisp-like Languages.
|
||||||
3. Org Mode
|
3. Org Mode
|
||||||
|
|
||||||
|
## Structured editing of S-expression data
|
||||||
|
|
||||||
|
- [ParEdit](https://www.emacswiki.org/emacs/ParEdit)
|
||||||
|
- [lispy](https://github.com/doomemacs/doomemacs/tree/master/modules/editor/lispy)
|
||||||
|
- [parinfer](https://github.com/doomemacs/doomemacs/tree/master/modules/editor/parinfer)
|
||||||
|
- Formatting: `M-x pp-buffer`
|
||||||
|
|
||||||
## Terminal Related
|
## Terminal Related
|
||||||
|
|
||||||
zellij provides a more powerful and stable terminal experience, so here is zellij's terminal shortcuts I use frequently now:
|
zellij provides a more powerful and stable terminal experience, so here is zellij's terminal shortcuts I use frequently now:
|
||||||
@@ -88,12 +95,15 @@ The same as neovim/vim:
|
|||||||
## Editing and Formatting
|
## Editing and Formatting
|
||||||
|
|
||||||
| Action | Shortcut |
|
| Action | Shortcut |
|
||||||
| ---------------------------------------- | ------------------- |
|
| ------------------------------------------ | ------------------- |
|
||||||
| Format Document | `<Space> + cf` |
|
| Format Document | `<Space> + cf` |
|
||||||
| Code Actions | `<Space> + ca` |
|
| Code Actions | `<Space> + ca` |
|
||||||
| Rename | `<Space> + cr` |
|
| Rename | `<Space> + cr` |
|
||||||
| Opening LSP symbols | `<Space> + cS` |
|
| Opening LSP symbols | `<Space> + cS` |
|
||||||
| Show all LSP Errors | `<Space> + c + x/X` |
|
| Show all LSP Errors | `<Space> + c + x/X` |
|
||||||
|
| Show infinite undo history(really useful!) | `<Space> + s + u` |
|
||||||
|
| Fold the current code block | `zc` |
|
||||||
|
| Unfold the current code block | `zo` |
|
||||||
| Jump to Definition | `gd` |
|
| Jump to Definition | `gd` |
|
||||||
| Jump to References | `gD` |
|
| Jump to References | `gD` |
|
||||||
| (Un)Comment the selected context | `gc` |
|
| (Un)Comment the selected context | `gc` |
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
(format +onsave)
|
(format +onsave)
|
||||||
; automated prettiness
|
; automated prettiness
|
||||||
;;lispy ; vim for lisp, for people who don't like vim
|
;;lispy ; vim for lisp, for people who don't like vim
|
||||||
;;multiple-cursors ; editing in many places at once
|
multiple-cursors ; editing in many places at once
|
||||||
;;objed ; text object editing for the innocent
|
;;objed ; text object editing for the innocent
|
||||||
;;parinfer ; turn lisp into python, sort of
|
;;parinfer ; turn lisp into python, sort of
|
||||||
;;rotate-text ; cycle region at point between text candidates
|
;;rotate-text ; cycle region at point between text candidates
|
||||||
@@ -105,7 +105,6 @@
|
|||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
(terraform +lsp)
|
(terraform +lsp)
|
||||||
; infrastructure as code
|
; infrastructure as code
|
||||||
;;tmux ; an API for interacting with tmux
|
|
||||||
tree-sitter ; syntax and parsing, sitting in a tree...
|
tree-sitter ; syntax and parsing, sitting in a tree...
|
||||||
;;upload ; map local to remote projects via ssh/ftp
|
;;upload ; map local to remote projects via ssh/ftp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user