help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheme mode


From: Emanuel Berg
Subject: Re: Scheme mode
Date: Mon, 24 Oct 2022 04:49:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Damien Mattei wrote:

> i have a macro to 'define procedures in Scheme called 'def
> (like in Python) and i want the emacs scheme mode to
> highlight 'def the ways it is for 'define, how can
> i do that?

What mode are you using?

(font-lock-add-keywords 'emacs-lisp-mode
 '(
   ("font-lock-builtin-face"              .  font-lock-builtin-face)
   ("font-lock-comment-delimiter-face"    .  font-lock-comment-delimiter-face)
   ("font-lock-comment-face"              .  font-lock-comment-face)
   ("font-lock-constant-face"             .  font-lock-constant-face)
   ("font-lock-doc-face"                  .  font-lock-doc-face)
   ("font-lock-function-name-face"        .  font-lock-function-name-face)
   ("font-lock-keyword-face"              .  font-lock-keyword-face)
   ("font-lock-negation-char-face"        .  font-lock-negation-char-face)
   ("font-lock-preprocessor-face"         .  font-lock-preprocessor-face)
   ("font-lock-regexp-grouping-backslash" . 
'font-lock-regexp-grouping-backslash)
   ("font-lock-regexp-grouping-construct" . 
'font-lock-regexp-grouping-construct)
   ("font-lock-string-face"               .  font-lock-string-face)
   ("font-lock-type-face"                 .  font-lock-type-face)
   ("font-lock-variable-name-face"        .  font-lock-variable-name-face)
   ("font-lock-warning-face"              .  font-lock-warning-face)
   )
 t)

https://dataswamp.org/~incal/figures/emacs/dressed-up-as-themselves.png

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]