docs(lispy): add "Working with Brackets"
This commit is contained in:
parent
9064287102
commit
0d30ef188a
1 changed files with 21 additions and 0 deletions
|
@ -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?]]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue