mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-22 19:17:34 +00:00
[emacs] Fix writeroom mode for nested roam dirs
This commit is contained in:
parent
44117ca9bc
commit
ddeec04ce4
1 changed files with 3 additions and 2 deletions
|
@ -1040,8 +1040,9 @@ Makes for a much nicer note-taking experience.
|
|||
(add-hook 'hack-local-variables-hook
|
||||
(lambda ()
|
||||
(when (and org-roam-directory
|
||||
(f-child-of? (or (buffer-file-name) default-directory)
|
||||
(expand-file-name org-roam-directory)))
|
||||
(f-ancestor-of?
|
||||
(expand-file-name org-roam-directory)
|
||||
(or (buffer-file-name) default-directory)))
|
||||
(writeroom-mode t)))
|
||||
nil t))
|
||||
|
||||
|
|
Loading…
Reference in a new issue