docs/api: add appendq!, prependq! & pushnew! demos
This commit is contained in:
parent
0088872c20
commit
37cb3739f5
1 changed files with 28 additions and 1 deletions
29
docs/api.org
29
docs/api.org
|
@ -10,6 +10,7 @@ It is integrated into Helpful, in Doom.
|
||||||
- [[#add-hook][add-hook!]]
|
- [[#add-hook][add-hook!]]
|
||||||
- [[#add-transient-hook][add-transient-hook!]]
|
- [[#add-transient-hook][add-transient-hook!]]
|
||||||
- [[#after][after!]]
|
- [[#after][after!]]
|
||||||
|
- [[#appendq][appendq!]]
|
||||||
- [[#custom-set-faces][custom-set-faces!]]
|
- [[#custom-set-faces][custom-set-faces!]]
|
||||||
- [[#custom-theme-set-faces][custom-theme-set-faces!]]
|
- [[#custom-theme-set-faces][custom-theme-set-faces!]]
|
||||||
- [[#defer-feature][defer-feature!]]
|
- [[#defer-feature][defer-feature!]]
|
||||||
|
@ -23,6 +24,7 @@ It is integrated into Helpful, in Doom.
|
||||||
- [[#map][map!]]
|
- [[#map][map!]]
|
||||||
- [[#package][package!]]
|
- [[#package][package!]]
|
||||||
- [[#pushnew][pushnew!]]
|
- [[#pushnew][pushnew!]]
|
||||||
|
- [[#prependq][prependq!]]
|
||||||
- [[#quiet][quiet!]]
|
- [[#quiet][quiet!]]
|
||||||
- [[#remove-hook][remove-hook!]]
|
- [[#remove-hook][remove-hook!]]
|
||||||
- [[#setq-hook][setq-hook!]]
|
- [[#setq-hook][setq-hook!]]
|
||||||
|
@ -90,6 +92,12 @@ It is integrated into Helpful, in Doom.
|
||||||
(after! rustic ...)
|
(after! rustic ...)
|
||||||
(after! python ...)
|
(after! python ...)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** appendq!
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(let ((x '(a b c)))
|
||||||
|
(appendq! x '(c d e))
|
||||||
|
x)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** custom-set-faces!
|
*** custom-set-faces!
|
||||||
#+BEGIN_SRC elisp :eval no
|
#+BEGIN_SRC elisp :eval no
|
||||||
|
@ -388,7 +396,26 @@ These are side-by-side comparisons, showing how to bind keys with and without
|
||||||
(package! evil :ignore (not (equal system-name "my-desktop")))
|
(package! evil :ignore (not (equal system-name "my-desktop")))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO pushnew!
|
*** pushnew!
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(let ((list '(a b c)))
|
||||||
|
(pushnew! list 'c 'd 'e)
|
||||||
|
list)
|
||||||
|
#+END_SRC
|
||||||
|
*** prependq!
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(let ((x '(a b c)))
|
||||||
|
(prependq! x '(c d e))
|
||||||
|
x)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(let ((x '(a b c))
|
||||||
|
(y '(c d e))
|
||||||
|
(z '(f g)))
|
||||||
|
(prependq! x y z '(h))
|
||||||
|
x)
|
||||||
|
#+END_SRC
|
||||||
*** quiet!
|
*** quiet!
|
||||||
#+BEGIN_SRC elisp :eval no
|
#+BEGIN_SRC elisp :eval no
|
||||||
;; Enters recentf-mode without extra output
|
;; Enters recentf-mode without extra output
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue