aboutsummaryrefslogtreecommitdiff
path: root/shoshin-config.org
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-07-01 23:43:04 -0500
committershoshin <shoshin@cicadas.surf>2022-07-01 23:44:10 -0500
commit263032646f5a73aeb3a60a5035b53a20377e4b83 (patch)
tree5214c727145f1dcdc7c63182459281af8a70356e /shoshin-config.org
parent5e29dc321ec2ac6206f259d215f95758e7a64a89 (diff)
Add: [consult] theme preview debouncing and notes
Diffstat (limited to 'shoshin-config.org')
-rw-r--r--shoshin-config.org16
1 files changed, 13 insertions, 3 deletions
diff --git a/shoshin-config.org b/shoshin-config.org
index 336b5a9..53a57e2 100644
--- a/shoshin-config.org
+++ b/shoshin-config.org
@@ -266,14 +266,24 @@ and press ~m SPC~ to narrow the "buffer list" to any bookmarks.
(define-key xah-fly-command-map (kbd "n") #'consult-line)
#+end_src
-*** note about ~consult-themes~
+*** consult-themes
i had a bit of a mess with it at first, because i'd implemented my own
solution to a quirk of theme loading. enabling themes is additive,
and can cause unexpected results. so i added [[info:elisp#Advising Functions][advice]]
to ~load-theme~ to automatically disable the old one before enabling
-the new. it seems like consult does this as well as switching themes
-/as you narrow your selection/.
+the new.
+
+it seems like ~consult-theme~ does this as well. additionally, as
+it will preview the theme as you are narrowing the selection. i did not
+expect this behavior and it got all kinds of wonky. the manual has a
+nice example of delaying the theme-switch-preview since it is slow.
+this way you can scroll / narrow your list of themes without the colors
+changing with every keypress.
+
+#+begin_src emacs-lisp
+ (consult-customize consult-theme :preview-key '(:debounce 0.5 any))
+#+end_src
*** TODO consult-project-buffer