Skip to content

Syntax highlighting not enabled. #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ShimmerFairy opened this issue May 7, 2025 · 0 comments
Open

Syntax highlighting not enabled. #84

ShimmerFairy opened this issue May 7, 2025 · 0 comments

Comments

@ShimmerFairy
Copy link

For whatever reason, when switching to gnuplot-mode for a file, there's absolutely no syntax highlighting whatsoever. I initially thought the mode just didn't come with it, but I found that typing M-x font-lock-mode would bring it up. I don't see a setting for it in gnuplot-mode's customization options, so clearly there's some sort of bug here. Every other major mode enables font lock automatically, there's no reason why this one shouldn't.

I'm no elisp expert, but I'm guessing the fact that the gnuplot-mode function is defined entirely manually (as opposed to deriving from another mode as is typical) means it's missing some code for enabling font lock that you'd usually have done for you via derivation. I can't easily find a description of what a totally manual major mode needs to do, or I'd be able to provide a PR for the issue.

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

No branches or pull requests

1 participant