Last active
August 29, 2015 14:18
-
-
Save kawabata/a18ecb3dc338c31fa87a to your computer and use it in GitHub Desktop.
拡張B
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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