Replies: 1 comment
-
I wonder how I searched for ways to set the major mode of a buffer automatically 😓. There are other options, discussed here, for example, https://emacs.stackexchange.com/questions/2497/how-to-get-buffers-not-just-files-to-honor-auto-mode-alist , that give ways of accomplishing what I wanted and that do not mess up consult's behavior. Sorry for the noise. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have used for some time this advice to switch-to-buffer, to allow me to create a new buffer with major-mode like auto-mode-alist does for a file
This has worked well for sometime, but I think some change introduced into consult in the last two or three months now results in the above code preventing consult-ripgrep from leaving point in the match. I can use consult-ripgrep, but on "Enter" I am left at the beginning of the buffer. All is fixed if I remove the advice, of course.
How can I enjoy both consult-ripgreps behavior of leaving me where the match is AND being able to create buffers that use auto-mode-alist?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions