Nicolas Martyanoff on Nostr: #Emacs highlights text using font-lock-mode. Keywords highlighting is defined using ...
#Emacs highlights text using font-lock-mode. Keywords highlighting is defined using font-lock-keywords. When set to a list of symbols, it defines multiple levels. You can select the level on a per-mode basis using font-lock-maximum-decoration.
Personally I prefer using less colors, but some users may have different preferences. So I now support 3 levels for bcl-mode At the highest levels, even entry names and block types are highlighted.
Published at
2024-12-26 18:09:19Event JSON
{
"id": "91d77ece2fe76e7425f61ad7310a83482b14b7c0e2e369bb2e833c6dce350bde",
"pubkey": "6d91e7b056ab18986298e04a8b278a5e070a726487fd30a599427c79db9070e9",
"created_at": 1735236559,
"kind": 1,
"tags": [
[
"t",
"emacs"
],
[
"imeta",
"url https://cdn.fosstodon.org/media_attachments/files/113/720/462/581/079/676/original/77918a33fefee6de.png",
"m image/png",
"dim 1103x680",
"blurhash U04B%z~XavM{R#xus;V@xUs,kDNFxsxuofWA"
],
[
"proxy",
"https://fosstodon.org/users/galdor/statuses/113720463140937606",
"activitypub"
]
],
"content": "#Emacs highlights text using font-lock-mode. Keywords highlighting is defined using font-lock-keywords. When set to a list of symbols, it defines multiple levels. You can select the level on a per-mode basis using font-lock-maximum-decoration.\n\nPersonally I prefer using less colors, but some users may have different preferences. So I now support 3 levels for bcl-mode At the highest levels, even entry names and block types are highlighted.\n\nhttps://cdn.fosstodon.org/media_attachments/files/113/720/462/581/079/676/original/77918a33fefee6de.png",
"sig": "d5bacec818a0fca175e3b408889c1f5578d50ed723a919b42e4b9b82253dc2022c6d4aa52737b3d01f59bedcf1573687f7c4d8c8346c88b0fe9ab5b9bd9c4513"
}