Add :if, :when, :unless & :cond support to doom! macro

Now you can conditionally enable/disable modules.
This commit is contained in:
Henrik Lissner 2019-07-26 12:05:13 +02:00
parent 321b797046
commit e6201ca952
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 56 additions and 12 deletions

View file

@ -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)