Skip to content

Instantly share code, notes, and snippets.

@kawabata
Last active August 29, 2015 14:18
Show Gist options
  • Save kawabata/a18ecb3dc338c31fa87a to your computer and use it in GitHub Desktop.
Save kawabata/a18ecb3dc338c31fa87a to your computer and use it in GitHub Desktop.
拡張B
(defun cjk-colorize-turn-on ()
(interactive)
(font-lock-add-keywords
nil '(("[𠀀-𪛖]+" 0 highlight t)
("[𪜀-𫜴]+" 0 font-lock-keywords t)
("[𫝀-𬺡]+" 0 font-lock-warning-face t))))
(defun cjk-colorize-turn-off ()
(interactive)
(font-lock-remove-keywords
nil '(("[𠀀-𪛖]+" 0 highlight t)
("[𪜀-𫜴]+" 0 font-lock-keywords t)
("[𫝀-𬺡]+" 0 font-lock-warning-face t))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment