From 1eb8be9875f44f54f755e97f8d62e3259999f9ed Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 9 Sep 2019 19:13:51 -0400 Subject: [PATCH] Add load! example to docs/api.org --- docs/api.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/api.org b/docs/api.org index 60ca95768..3b98480f0 100644 --- a/docs/api.org +++ b/docs/api.org @@ -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