mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-22 03:00:05 +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
|
(add-hook 'hack-local-variables-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(when (and org-roam-directory
|
(when (and org-roam-directory
|
||||||
(f-child-of? (or (buffer-file-name) default-directory)
|
(f-ancestor-of?
|
||||||
(expand-file-name org-roam-directory)))
|
(expand-file-name org-roam-directory)
|
||||||
|
(or (buffer-file-name) default-directory)))
|
||||||
(writeroom-mode t)))
|
(writeroom-mode t)))
|
||||||
nil t))
|
nil t))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue