mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-24 19:19:52 +00:00
[emacs] Use writeroom in org-roam buffers
This commit is contained in:
parent
5024a42c17
commit
372fb3172d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue