From 9ffdbfe068ce74620419acabc4ed7d183d1d58a9 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 5 Jan 2024 18:18:28 +0800 Subject: [PATCH] docs: structured editing --- .../desktop/editors/Structured-Editing.md | 22 +++++++++++++++++++ home/base/desktop/editors/emacs/README.md | 9 -------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 home/base/desktop/editors/Structured-Editing.md diff --git a/home/base/desktop/editors/Structured-Editing.md b/home/base/desktop/editors/Structured-Editing.md new file mode 100644 index 00000000..0556e122 --- /dev/null +++ b/home/base/desktop/editors/Structured-Editing.md @@ -0,0 +1,22 @@ +# Structured Editing + +## S-expression data(Lisp) + +- paredit/[lispy](https://github.com/doomemacs/doomemacs/tree/master/modules/editor/lispy): too complex. +- [evil-smartparens](https://github.com/expez/evil-smartparens): simple and useful. +- [parinfer(par-in-fer)](https://shaunlebron.github.io/parinfer/): morden, simple, elegant and useful, but works not well with some other completion plugins... + - to make parinfer works, you should disable sexp & smartparens in any lisp mode. + +Some plugins: + +- Emacs + - [parinfer-rust-mode](https://github.com/justinbarclay/parinfer-rust-mode) +- Neovim + - [parinfer-rust](https://github.com/eraserhd/parinfer-rust) + - + +## Other Languages + +1. treesitter +1. ... + diff --git a/home/base/desktop/editors/emacs/README.md b/home/base/desktop/editors/emacs/README.md index a4bc8d44..1abba6eb 100644 --- a/home/base/desktop/editors/emacs/README.md +++ b/home/base/desktop/editors/emacs/README.md @@ -30,17 +30,8 @@ when in doubt, run `doom sync`! ## Why emacs? 1. Explore the unknown, just for fun! -2. Better support for Lisp-like Languages. 3. Org Mode -## Structured editing of S-expression data - -> https://wikemacs.org/wiki/Lisp_editing - -- [lispy](https://github.com/doomemacs/doomemacs/tree/master/modules/editor/lispy): too complex. -- [evil-smartparens](https://github.com/expez/evil-smartparens): simple and useful. -- [parinfer](https://github.com/doomemacs/doomemacs/tree/master/modules/editor/parinfer): morden, simple, elegant and useful, but works not well with some other completion plugins... - ## Cheetsheet Here is the cheetsheet related to my DoomEmacs configs. Please read vim's common cheetsheet at [../README.md](../README.md) before reading the following.