mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an :around advice.
This commit is contained in:
@ -146,10 +146,10 @@ must be non-read-only, empty, and there must be a rule in
|
||||
(when-let (rule (cl-find-if #'+file-template-p +file-templates-alist))
|
||||
(apply #'+file-templates--expand rule))))
|
||||
|
||||
(defadvice! +file-templates-inhibit-in-org-capture-a (orig-fn &rest args)
|
||||
(defadvice! +file-templates-inhibit-in-org-capture-a (fn &rest args)
|
||||
:around #'org-capture
|
||||
(let ((+file-templates-inhibit t))
|
||||
(apply orig-fn args)))
|
||||
(apply fn args)))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user