Add load! example to docs/api.org
This commit is contained in:
parent
4ebb7df433
commit
1eb8be9875
1 changed files with 11 additions and 1 deletions
12
docs/api.org
12
docs/api.org
|
@ -167,7 +167,17 @@ It is integrated into Helpful, in Doom.
|
||||||
|
|
||||||
*** TODO lambda!
|
*** TODO lambda!
|
||||||
*** TODO lambda!!
|
*** TODO lambda!!
|
||||||
*** TODO load!
|
*** load!
|
||||||
|
#+BEGIN_SRC elisp :eval no
|
||||||
|
;;; Lets say we're in ~/.doom.d/config.el
|
||||||
|
(load! "lisp/module") ; loads ~/.doom.d/lisp/module.el
|
||||||
|
(load! "somefile" doom-emacs-dir) ; loads ~/.emacs.d/somefile.el
|
||||||
|
(load! "anotherfile" doom-private-dir) ; loads ~/.doom.d/anotherfile.el
|
||||||
|
|
||||||
|
;; If you don't want a `load!' call to throw an error if the file doesn't exist:
|
||||||
|
(load! "~/.maynotexist" nil t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO map!
|
*** TODO map!
|
||||||
*** package!
|
*** package!
|
||||||
#+BEGIN_SRC elisp :eval no
|
#+BEGIN_SRC elisp :eval no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue