Skip to content

Help with consult-preview-allowed-hooks to soft-wrap previews? #928

Answered by minad
mcarmosi asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at the consult-preview-allowed-hooks, hooks which enable global minor modes after find-file. What you are adding there does not match that. See this example:

(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)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mcarmosi
Comment options

@minad
Comment options

@mcarmosi
Comment options

@minad
Comment options

Answer selected by mcarmosi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants