Allow the user to override lispyville themes

This commit is contained in:
Troy Hinckley 2020-05-17 10:29:25 -06:00
parent 98d7b97d33
commit 993a0770e5
2 changed files with 21 additions and 19 deletions

View file

@ -28,19 +28,19 @@ lispy is active
The default key themes that are set are as follows: The default key themes that are set are as follows:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(lispyville-set-key-theme
'((operators normal) '((operators normal)
c-w c-w
(prettify insert) (prettify insert)
(atom-movement normal visual) (atom-movement normal visual)
slurp/barf-lispy slurp/barf-lispy
additional additional
additional-insert)) additional-insert)
#+END_SRC #+END_SRC
See noctuid's [[https://github.com/noctuid/lispyville/blob/master/README.org][README]] for more info on specific keybindings (starting [[https://github.com/noctuid/lispyville#operators-key-theme][here]]) of To change the key themes set ~lispyville-key-theme~. Think of
each key theme. Think of ~lispyville-set-key-theme~ as adding ~lispyville-key-theme~ as the equivalent of ~parinfer-extensions~. See
~parinfer-extensions~ via ~(setq parinfer-extensions '(blah blah blah))~. 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]]).
* Prerequisites * Prerequisites
This module has no prerequisites. This module has no prerequisites.

View file

@ -17,12 +17,14 @@
(use-package! lispyville (use-package! lispyville
:when (featurep! :editor evil) :when (featurep! :editor evil)
:hook (lispy-mode . lispyville-mode) :hook (lispy-mode . lispyville-mode)
:config :init
(lispyville-set-key-theme (setq lispyville-key-theme
'((operators normal) '((operators normal)
c-w c-w
(prettify insert) (prettify insert)
(atom-movement normal visual) (atom-movement normal visual)
slurp/barf-lispy slurp/barf-lispy
additional additional
additional-insert))) additional-insert))
:config
(lispyville-set-key-theme))