greghendershott / racket-mode

Emacs major and minor modes for Racket: edit, REPL, check-syntax, debug, profile, packages, and more.
https://www.racket-mode.com/
GNU General Public License v3.0
681 stars 93 forks source link

.dir-locals.el support for custom syntax #403

Open juszczakn opened 5 years ago

juszczakn commented 5 years ago

Might be cool to provide supported vars that can be incorporated into syntax highlighting. That way, individual projects could create a .dir-local.el that defines highlighting for custom syntax they have.

https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html

Looks like racket--common-variables in racket-common.el and racket-font-lock.el would be places to start.

greghendershott commented 4 years ago

Thank you for the suggestion. A couple quick brain-dump thoughts: