From 169821b9eb7f715c4f06c7685ff21aae9287e1d1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Apr 2020 15:56:39 -0400 Subject: [PATCH] Refactor hide-mode-line in org-roam buffer --- modules/lang/org/contrib/roam.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index cdc4b841e..a82594dfb 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -46,12 +46,9 @@ (or (featurep! :completion helm +fuzzy) (featurep! :completion ivy +fuzzy))) - ;; HACK Hide the mode line in the org-roam buffer, since it serves no purpose. - ;; This makes it easier to distinguish among other org buffers. - (defadvice! +org--hide-mode-line-a (&rest _) - :after #'org-roam-buffer--get-create - (with-current-buffer org-roam-buffer - (hide-mode-line-mode +1)))) + ;; Hide the mode line in the org-roam buffer, since it serves no purpose. This + ;; makes it easier to distinguish among other org buffers. + (add-hook 'org-roam-buffer-prepare-hook #'hide-mode-line-mode)) ;; Since the org module lazy loads org-protocol (waits until an org URL is