diff --git a/.doom.d/config.org b/.doom.d/config.org index 0cdaccd..dffc9e2 100644 --- a/.doom.d/config.org +++ b/.doom.d/config.org @@ -905,6 +905,14 @@ Adapted from https://org-roam.readthedocs.io/en/master/org_export/. (use-package! org-roam-server :commands org-roam-server-mode) #+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 ** Change directory in the context of a remote host #+begin_src emacs-lisp