Skip to content

Conversation

@paaguti
Copy link

@paaguti paaguti commented Oct 20, 2025

Add workaround to disable semantic highlighting in snippet mode.
Depending on the theme, the snippet header looks confusing and difficult to read.

This PR overrides the combined capf + semantic PR I submitted yesterday.

Add workaround for semantic highlighting in snippet mode
Copy link
Collaborator

@monnier monnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put the setq-local directly inside the definition of snippet-mode (and it doesn't even need a boundp check, AFAICT)?
Also, it would be good for the comment to mention (maybe as a "FIXME") that the core problem is that snippet-mode applies emacs-lisp-mode keywords over the whole buffer, including those parts which are plain text rather than ELisp code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants