-
Hello, I am using consult-notes and I write in the "one line is a paragraph" convention. So I use olivetti and Here is what I tried so far. It seems
I have
And for good measure I added it explicitly to org mode hooks:
But I still can't get At the very least |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Take a look at the (defun my-hook ()
;; Here you can enable modes depending on the current buffer/file.
)
(add-to-list 'consult-preview-allowed-hooks 'my-hook)
(add-hook 'find-file-hook 'my-hook) |
Beta Was this translation helpful? Give feedback.
-
I am just coming here to say thanks and to add one detail: this method not only works for CONSULT-NOTE, but also for CONSULT-FILE and CONSULT-GREP. Thus, to make OLIVETTI work for both functions, the code would be altered thus: (defun my-hook ()
;; Here you can enable modes depending on the current buffer/file.
)
(add-to-list 'consult-preview-allowed-hooks 'my-hook)
(add-hook 'find-file-hook 'my-hook)
(add-hook 'grep-mode-hook 'my-hook) |
Beta Was this translation helpful? Give feedback.
Take a look at the
consult-preview-allowed-hooks
, hooks which enable global minor modes afterfind-file
. What you are adding there does not match that. See this example: