Skip to content

Commit

Permalink
Add load! example to docs/api.org
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Sep 10, 2019
1 parent 4ebb7df commit 1eb8be9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,17 @@ It is integrated into Helpful, in Doom.

*** 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!
*** package!
#+BEGIN_SRC elisp :eval no
Expand Down

0 comments on commit 1eb8be9

Please sign in to comment.