Revert macros to ...! name convention (elisp doesn't like @...)
This commit is contained in:
parent
b64d5554e3
commit
33c88d4f82
125 changed files with 877 additions and 880 deletions
|
@ -9,15 +9,15 @@
|
|||
;; regular plists.
|
||||
;;
|
||||
;; (let ((a '(abc :commands 1 :config 3 4 5)))
|
||||
;; (@mplist a &delete :commands :config))
|
||||
;; (mplist! a &delete :commands :config))
|
||||
|
||||
;;;###autoload
|
||||
(defmacro @mplist (var action &rest args)
|
||||
(defmacro mplist! (var action &rest args)
|
||||
"A helper macro that makes dealing with doom-mplist-* functions a little more concise.
|
||||
|
||||
Examples:
|
||||
(@mplist plist &delete :x :y)
|
||||
(@mplist plist &get :x)"
|
||||
(mplist! plist &delete :x :y)
|
||||
(mplist! plist &get :x)"
|
||||
(declare (indent defun))
|
||||
(let ((fn-sym (intern (format "doom-mplist-%s" (substring (symbol-name action) 1)))))
|
||||
(when (fboundp fn-sym)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue