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

@ -229,8 +229,6 @@ For example, :nvi will map to (list 'normal 'visual 'insert). See
(put :mode 'lisp-indent-function 'defun)
(put :prefix 'lisp-indent-function 'defun)
(put :prefix-map 'lisp-indent-function 'defun)
(put :unless 'lisp-indent-function 'defun)
(put :when 'lisp-indent-function 'defun)
;; specials
(defvar doom--map-forms nil)