Refactor hide-mode-line in org-roam buffer
This commit is contained in:
parent
6bcd1063e6
commit
169821b9eb
1 changed files with 3 additions and 6 deletions
|
@ -46,12 +46,9 @@
|
||||||
(or (featurep! :completion helm +fuzzy)
|
(or (featurep! :completion helm +fuzzy)
|
||||||
(featurep! :completion ivy +fuzzy)))
|
(featurep! :completion ivy +fuzzy)))
|
||||||
|
|
||||||
;; HACK Hide the mode line in the org-roam buffer, since it serves no purpose.
|
;; Hide the mode line in the org-roam buffer, since it serves no purpose. This
|
||||||
;; This makes it easier to distinguish among other org buffers.
|
;; makes it easier to distinguish among other org buffers.
|
||||||
(defadvice! +org--hide-mode-line-a (&rest _)
|
(add-hook 'org-roam-buffer-prepare-hook #'hide-mode-line-mode))
|
||||||
: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
|
;; Since the org module lazy loads org-protocol (waits until an org URL is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue