GitHub - calsys456/lisp-semantic-hl.el: Semantic Syntax Highlighting for Common Lisp & Elisp in Emacs, based on the informations of the global Lisp environment

1 min read Original article ↗

Semantic Syntax Highlighting for Lisp Languages in Emacs

MELPA

Semantic Syntax Highlighting for Common Lisp & Elisp in Emacs, based on the informations of the global Lisp environment

screenshot

Usage

Load lisp-semantic-hl.el, then enable lisp-semantic-hl minor mode under emacs-lisp-mode or lisp-mode.

Sample configuration with MELPA:

(use-package lisp-semantic-hl
  :ensure t
  :hook ((emacs-lisp-mode lisp-mode) . lisp-semantic-hl-mode))

Goals

  • Semantic syntax highlight based on the information of the lexical environment for Common Lisp using environment inquiry APIs from CLtL2 and code injection
  • Better support for macros

Acknowledgements

Ported from the LispWorks plugin by ourselves, originally named "colourful".

Similar function for Lem can be found here as a reference.

Thanks our sister Simone, and our lover misaka18931, who love and support us.

Supporting Neurodivisity & Transgender & Plurality!

🏳️‍🌈🏳️‍⚧️