Skip to content

Commit

Permalink
docs/api: add setq! demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Jan 24, 2020
1 parent d1442a0 commit a681a32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a681a32

Please sign in to comment.