From time to time I open a script or config file for which there is no major mode defined. When I invoke comment-region
within that buffer, Emacs will prompt me for the comment syntax, and save it as the buffer-local variable comment-start
.
Can I enable syntax highlighting of comment lines in that buffer?
Once the variable comment-start
has been set, what other steps do I need to take in order for font-lock-mode
to start highlighting my comment lines?