From 166d1ecabc5e19f38ae310ecca608589f488b217 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 16 Apr 2020 15:18:43 -0400 Subject: [PATCH] Hide mode-line in org-roam buffer --- modules/lang/org/contrib/roam.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index f908bcb76..eea56ec8b 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -40,7 +40,14 @@ (cond ((featurep! :completion helm) 'helm) ((featurep! :completion ivy) 'ivy) ((featurep! :completion ido) 'ido) - ('default)))) + ('default))) + + ;; 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)))) ;; Since the org module lazy loads org-protocol (waits until an org URL is