Soit sur Soft et reseau (eh oui, emacs c'est un soft, et aboluement pas OSA specifique [:kiki])
Ou peut-etre meme, soyons fous, demander sur programmation ! Apres tout, c'est un programme en lisp ton truc.
Garion40
Je suis en train de créer pour un projet un mode emacs...
Bon il y a pas trop de docs explicites à ce sujet...
Voilà le code:
(defface x-env-face
'((((class color) (background dark)) (:foreground "blue" ))
(((class color) (background light)) (:foreground "blue" )) (((class grayscale) (background light)) (:foreground "blue" :bold t :italic t)) (((class grayscale) (background dark)) (:foreground "blue" :bold t :italic t)) (t (:bold t))) "Font Lock mode face used to highlight macro-keywords." :group 'font-lock-faces)
// dans ma variable x-font-lock-keywords
(list (list (concat
"\\<\\(if\\|else\\|switch\\)\\>" ) '(1 x-env-face nil))
Voilà le problème:
Si je mets une fac par défaut (font-lock-keyword-face), ça marche...
Dans mon cas, en utilisant x-env-face, ça ne colore rien du tout :fou: