[emacs] Use writeroom in org-roam buffers

This commit is contained in:
Correl Roush 2020-12-17 00:13:54 -05:00
parent 5024a42c17
commit 372fb3172d

View file

@ -905,6 +905,14 @@ Adapted from https://org-roam.readthedocs.io/en/master/org_export/.
(use-package! org-roam-server (use-package! org-roam-server
:commands org-roam-server-mode) :commands org-roam-server-mode)
#+end_src #+end_src
*** Use writeroom in org-roam buffers
#+begin_src emacs-lisp
(defun my/org-roam-writeroom ()
(when (f-child-of? (buffer-file-name) org-roam-directory)
(writeroom-mode t)))
(add-hook! 'org-mode-hook #'my/org-roam-writeroom)
#+end_src
* Eshell * Eshell
** Change directory in the context of a remote host ** Change directory in the context of a remote host
#+begin_src emacs-lisp #+begin_src emacs-lisp