diff options
-rw-r--r-- | users/tazjin/emacs/config/functions.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/tazjin/emacs/config/functions.el b/users/tazjin/emacs/config/functions.el index 6e2cff7caec9..df36c7eb882c 100644 --- a/users/tazjin/emacs/config/functions.el +++ b/users/tazjin/emacs/config/functions.el @@ -349,4 +349,9 @@ installed (and visible) XDG apps, and let users launch them." (run-external-command--handler (cdr (assoc (completing-read "App: " apps nil t) apps))))) +(defun advice-remove-all (sym) + "Remove all advices from symbol SYM." + (interactive "aFunction symbol: ") + (advice-mapc (lambda (advice _props) (advice-remove sym advice)) sym)) + (provide 'functions) |