Skip to content

Instantly share code, notes, and snippets.

@rizaudo
Created October 30, 2014 11:59
Show Gist options
  • Save rizaudo/47f8f0035fb2316269fc to your computer and use it in GitHub Desktop.
Save rizaudo/47f8f0035fb2316269fc to your computer and use it in GitHub Desktop.
font-lock-modeとかの使い方
(defface extra-ws
'((t (:background "blue" :foreground "black" :height 0.8))
:group 'hi-lock-faces))
(font-lock-add-keywords 'agda2-mode ;mode-name
'(("[ℕτΓ]" . 'extra-ws) ;("正規表現" .'face-name)
(" " . 'trailing-whitespace)
("[ \t]+$" . 'trailing-whitespace)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment