summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-grep.el3
-rw-r--r--lisp/init-org.el9
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/init-grep.el b/lisp/init-grep.el
index 530e712..ca1b8df 100644
--- a/lisp/init-grep.el
+++ b/lisp/init-grep.el
@@ -16,7 +16,8 @@ entering `ch' is equivalent to `*.[ch]'.")
(defadvice rgrep (after hide-grep-header activate) (hide-grep-header))
(defadvice lgrep (after hide-grep-hxoeader activate) (hide-grep-header))
(defadvice grep-find (after hide-grep-header activate) (hide-grep-header))
-(defadvice vc-git-grep (after hide-grep-header activate) (hide-grep-header))
+(after 'vc-git
+ (defadvice vc-git-grep (after hide-grep-header activate) (hide-grep-header)))
(key-chord-define-global ",z" 'rgrep)
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)