Revert macros to ...! name convention (elisp doesn't like @...)

This commit is contained in:
Henrik Lissner 2017-02-23 00:06:12 -05:00
parent b64d5554e3
commit 33c88d4f82
125 changed files with 877 additions and 880 deletions

View file

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