Last active
August 29, 2015 14:02
-
-
Save PhilHudson/d6429fb48caf6065ec8c to your computer and use it in GitHub Desktop.
Excise spurious Org agenda buffers leaked by org-mobile
This file contains hidden or 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
(eval-when-compile | |
(require 'syntactic-sugar) ; for `then' | |
(require 'anaphora)) ; for `awhen' | |
(require 'org-mobile) | |
(defun ph/clean-up-org-mobile-cruft () | |
"Excise spurious Org agenda buffers leaked by org-mobile." | |
(awhen (get-buffer "*SUMO*") | |
(then | |
(ignore-errors | |
(kill-buffer it) | |
(awhen (get-buffer "*Org Agenda*") | |
(then | |
(kill-buffer it))))))) | |
(add-hook 'org-mobile-post-push-hook #'ph/clean-up-org-mobile-cruft) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment