docs(lispy): add "Working with Brackets"

This commit is contained in:
Christian Packard 2023-07-24 17:22:32 -04:00 committed by GitHub
parent 9064287102
commit 0d30ef188a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,27 @@ To change the key themes set ~lispyville-key-theme~. Think of
lispyville's [[https://github.com/noctuid/lispyville/blob/master/README.org][README]] for more info on the specific keybindings of each key theme
(starting [[https://github.com/noctuid/lispyville#operators-key-theme][here]]).
** Working with Brackets
By default, =[= and =]= are [[https://github.com/noctuid/lispyville/tree/master#additional-movement-key-theme][bound]] to =lispyville-previous-opening= and
=lispyville-next-closing= respectively. If you use a language which makes frequent
use of brackets (e.g. Clojure, Racket, Scheme), you can insert a bracket pair =[]=
by typing ={=. If you prefer to use the bracket keys for input, you can rebind
them like below:
#+begin_src emacs-lisp
;; in $DOOMDIR/config.el
(map! :after (lispy lispyville)
:map lispy-mode-map-lispy
;; unbind individual bracket keys
"[" nil
"]" nil
;; re-bind commands bound to bracket keys by default
"M-[" #'lispyville-previous-opening
"M-]" #'lispyville.next-opening)
#+end_src
* Troubleshooting
[[doom-report:][Report an issue?]]