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:
parent
12732be155
commit
06392a723f
51 changed files with 223 additions and 229 deletions
|
@ -577,8 +577,8 @@ This be hooked to `projectile-after-switch-project-hook'."
|
|||
;;; Advice
|
||||
|
||||
;;;###autoload
|
||||
(defun +workspaces-autosave-real-buffers-a (orig-fn &rest args)
|
||||
(defun +workspaces-autosave-real-buffers-a (fn &rest args)
|
||||
"Don't autosave if no real buffers are open."
|
||||
(when (doom-real-buffer-list)
|
||||
(apply orig-fn args))
|
||||
(apply fn args))
|
||||
t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue