From 372fb3172db15285fc15db72d8a4b203531e3515 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 17 Dec 2020 00:13:54 -0500 Subject: [PATCH] [emacs] Use writeroom in org-roam buffers --- .doom.d/config.org | 8 ++++++++ 1 file changed, 8 insertions(+) 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