Add :if, :when, :unless & :cond support to doom! macro
Now you can conditionally enable/disable modules.
This commit is contained in:
parent
321b797046
commit
e6201ca952
3 changed files with 56 additions and 12 deletions
30
docs/api.org
30
docs/api.org
|
@ -82,6 +82,36 @@ It is integrated into Helpful, in Doom.
|
|||
:background "red" :weight bold)))
|
||||
#+END_SRC
|
||||
|
||||
* doom!
|
||||
#+BEGIN_SRC elisp :eval no
|
||||
(doom! :completion
|
||||
company
|
||||
ivy
|
||||
;;helm
|
||||
|
||||
:tools
|
||||
(:if IS-MAC macos)
|
||||
docker
|
||||
lsp
|
||||
|
||||
:lang
|
||||
(cc +lsp)
|
||||
(:cond ((string= system-name "work-pc")
|
||||
python
|
||||
rust
|
||||
web)
|
||||
((string= system-name "writing-pc")
|
||||
(org +dragndrop)
|
||||
ruby))
|
||||
(:if IS-LINUX
|
||||
(web +lsp)
|
||||
web)
|
||||
|
||||
:config
|
||||
literate
|
||||
(default +bindings +smartparens))
|
||||
#+END_SRC
|
||||
|
||||
* file-exists-p!
|
||||
#+BEGIN_SRC elisp
|
||||
(file-exists-p! "init.el" doom-emacs-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue