ace-window
ace-window copied to clipboard
add ace-window-hook
What good can this hook serve?
turning of golden-ratio-mode for a while and other stuff, maybe?
What's wrong with using this in your own config:
(defun ace-window-after-hook (arg)
(message "ace-window %d" arg))
(advice-add 'ace-window :after #'ace-window-after-hook)
;; (advice-remove 'ace-window #'ace-window-after-hook)
Compared to the hook solution, it's just one line more in the user's config. But:
- It's 0 lines in my package, which means it's easier to use and understand.
- It's more flexible in the user's config: you can redefine the advice to
:before
or:around
etc.
I guess there is nothing wrong...
El miércoles 28 de septiembre del 2016 a las 1020 horas, Oleh Krehel escribió:
What's wrong with using this in your own config:
(defun ace-window-after-hook (arg) (message "ace-window %d" arg)) (advice-add 'ace-window :after #'ace-window-after-hook) ;; (advice-remove 'ace-window #'ace-window-after-hook)
Compared to the hook solution, it's just one line more in the user's config. But:
- It's 0 lines in my package, which means it's easier to use and understand.
- It's more flexible in the user's config: you can redefine the advice to
:before
or:around
etc.
👋 Pax et bonum. Jorge Araya Navarro https://es.gravatar.com/shackra