From 0b2d1fed547aeea9716b59e66459c0857f7e31a6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 22 Oct 2014 21:06:48 -0400 Subject: Prevent advice redefinition warnings With Emacs 24.4 release, these produce warnings at startup. --- lisp/init-org.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lisp/init-org.el') diff --git a/lisp/init-org.el b/lisp/init-org.el index ab25cf2..f856fee 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -248,16 +248,17 @@ context will be shown for above heading." ;;; Agenda -(defadvice org-agenda-list (around org-agenda-fullscreen activate) - "Start agenda in fullscreen. +(after 'org-agenda + (defadvice org-agenda-list (around org-agenda-fullscreen activate) + "Start agenda in fullscreen. After agenda loads, delete other windows. `org-agenda-restore-windows-after-quit' should non-nil to restore the previous window configuration. If `org-agenda-sticky' is non-nil, configurations with more than one window do not seem to be restored properly." - ad-do-it - (delete-other-windows)) + ad-do-it + (delete-other-windows))) (setq org-agenda-restore-windows-after-quit t org-agenda-sticky nil) -- cgit v1.2.3