Emacs font lock mode: provide a custom color instead of a face

前端 未结 1 690
轻奢々
轻奢々 2021-01-02 12:02

On this page discussing font lock mode, an example is provided which highlights a custom pattern:

 (add-hook \'c-mode-hook
           (lambda ()
                     


        
相关标签:
1条回答
  • 2021-01-02 12:59
    (font-lock-add-keywords nil '(("\\<\\(FIXME\\):" 1 '(:foreground "blue") t)))
    (font-lock-add-keywords nil '(("\\<\\(FIXME\\):" 1 '(:foreground "#F0F0F0") t)))
    

    A full list of attributes is in the manual.

    0 讨论(0)
提交回复
热议问题