Created
June 25, 2011 21:16
-
-
Save johnbender/1046906 to your computer and use it in GitHub Desktop.
hook for switch to or creating windows in emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; advise the other-window function as a hook into switching windows | |
;; with C-x o | |
(defadvice other-window (after my-test-advice activate) | |
(my-super-awesome-function)) | |
;; when creating or adding a window fire the hook | |
(add-hook 'window-configuration-change-hook 'my-super-awesome-function) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment