* Scheme mode
@ 2022-10-22 11:38 Damien Mattei
2022-10-24 2:49 ` Emanuel Berg
2022-10-24 4:38 ` tomas
0 siblings, 2 replies; 3+ messages in thread
From: Damien Mattei @ 2022-10-22 11:38 UTC (permalink / raw)
To: help-gnu-emacs
hello,
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?
best regards,
damien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scheme mode
2022-10-22 11:38 Scheme mode Damien Mattei
@ 2022-10-24 2:49 ` Emanuel Berg
2022-10-24 4:38 ` tomas
1 sibling, 0 replies; 3+ messages in thread
From: Emanuel Berg @ 2022-10-24 2:49 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scheme mode
2022-10-22 11:38 Scheme mode Damien Mattei
2022-10-24 2:49 ` Emanuel Berg
@ 2022-10-24 4:38 ` tomas
1 sibling, 0 replies; 3+ messages in thread
From: tomas @ 2022-10-24 4:38 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
On Sat, Oct 22, 2022 at 01:38:29PM +0200, Damien Mattei wrote:
> hello,
>
> 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?
I think you'll have to change `scheme-font-lock-keywords-1' in scheme-mode.el
Perhaps in an "eval-after-load".
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-24 4:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 11:38 Scheme mode Damien Mattei
2022-10-24 2:49 ` Emanuel Berg
2022-10-24 4:38 ` tomas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.