From 0c03963b7ae5b6fde3321ec2860314d0bd5c9b9f Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sun, 31 Dec 2023 14:10:43 +0100 Subject: [PATCH] Add table with key bindings of `smartparens' commands --- README.org | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 0e53f1b..fa735f2 100644 --- a/README.org +++ b/README.org @@ -6440,7 +6440,9 @@ following links show how to put the documentation to practical use: Listing [[lst:configure-smartparens]] aims to configure [[https://github.com/Fuco1/smartparens][smartparens]] for Go, LaTeX, Lisp dialects, Org, and Python. Execute src_emacs-lisp{(sp-cheat-sheet)} for short documentation taking into account the overridden key bindings in listing -[[lst:configure-smartparens]]. +[[lst:configure-smartparens]]. Table [[tab:smartparens-commands-and-bindings]] lists +commands with key bindings taken in order from src_emacs-lisp{(sp-cheat-sheet)} +that takes the overrides of listing [[lst:configure-smartparens]] into account. Despite the provocative post [[https://andreyorst.gitlab.io/posts/2022-02-20-what-if-structural-editing-was-a-mistake/]["What if structural editing was a mistake?"]], [[https://github.com/Fuco1/smartparens][smartparens]] is one of my favorite packages. In particular, [[https://github.com/Fuco1/smartparens][smartparens]] handles @@ -6504,6 +6506,42 @@ contrary to for instance [[https://github.com/Fanael/rainbow-delimiters#readme][ (show-smartparens-global-mode +1)) #+end_src +#+attr_latex: :booktabs yes :float table +#+caption[Smartparens commands with key bindings in this setup]: +#+caption: Smartparens commands with key bindings in this setup. +#+name: tab:smartparens-commands-and-bindings +|--------------------------------+----------------------------+----------| +| command | keys | status | +|--------------------------------+----------------------------+----------| +| sp-forward-sexp | {{{kbd(C-M-f)}}} | | +| sp-backward-sexp | {{{kbd(C-M-b)}}} | | +| sp-next-sexp | {{{kbd(C-M-n)}}} | | +| sp-prev-sexp | {{{kbd(C-M-p)}}} | | +| sp-down-sexp | {{{kbd(C-M-d)}}} | shadowed | +| sp-backward-down-sexp | {{{kbd(C-M-a)}}} | | +| sp-beginning-of-sexp | {{{kbd(C-S-d)}}} | | +| sp-end-of-sexp | {{{kbd(C-S-a)}}} | | +| sp-up-sexp | {{{kbd(C-M-e)}}} | | +| sp-backward-up-sexp | {{{kbd(C-M-u)}}} | | +| sp-kill-sexp | {{{kbd(C-M-k)}}} | | +| sp-copy-sexp | {{{kbd(C-M-w)}}} | | +| sp-forward-slurp-sexp | {{{kbd(C-))}}} | override | +| sp-backward-slurp-sexp | {{{kbd(C-()}}} | override | +| sp-forward-barf-sexp | {{{kbd(C-M-))}}} | override | +| sp-backward-barf-sexp | {{{kbd(C-M-()}}} | override | +| sp-forward-symbol | {{{kbd(M-F)}}} | | +| sp-backward-symbol | {{{kbd(M-B)}}} | | +| sp-unwrap-sexp | {{{kbd(M-)}}} | shadowed | +| sp-backward-unwrap-sexp | {{{kbd(M-)}}} | | +| sp-splice-sexp | {{{kbd(M-D)}}} | | +| sp-splice-killing-backward | {{{kbd(C-M-)}}} | | +| sp-splice-sexp-killing-forward | {{{kbd(C-M-)}}} | shadowed | +| sp-select-next-thing | {{{kbd(C-M-])}}} | | +| sp-select-next-thing-exchange | {{{kbd(C-])}}} | | +| sp-mark-sexp | {{{kbd(C-M-SPC)}}} | | +|--------------------------------+----------------------------+----------| + + ** [[https://github.com/davidshepherd7/electric-operator#readme][Electric operators]] :PROPERTIES: :CUSTOM_ID: sec:electric-operators