From a681a32efc28d25af6d1db963bc7132fc41eb57b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Jan 2020 17:50:45 -0500 Subject: [PATCH] docs/api: add setq! demo --- docs/api.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/api.org b/docs/api.org index 642fb8f47ce..7e7efad6efe 100644 --- a/docs/api.org +++ b/docs/api.org @@ -470,6 +470,14 @@ These are side-by-side comparisons, showing how to bind keys with and without ;; Removing arbitrary forms (must be exactly the same as the definition) (remove-hook! (one-mode second-mode) (setq v 5) (setq a 2)) #+END_SRC +*** setq! +#+BEGIN_SRC elisp +;; Each of these have a setter associated with them, which must be triggered in +;; order for their new values to have an effect. +(setq! evil-want-Y-yank-to-eol nil + evil-want-C-u-scroll nil + evil-want-C-d-scroll nil) +#+END_SRC *** setq-hook! #+BEGIN_SRC elisp :eval no ;; Set multiple variables after a hook