auto-complete-blackets.el
: Auto complete corresponding blacketsuse-source-han-code-jp.el
: Use Source Han Code JP font
Last active
August 3, 2016 23:30
-
-
Save kosho/9465d4435164eb29f9e7d443533b71bc to your computer and use it in GitHub Desktop.
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
;; auto complete corresponding blackets | |
(global-set-key (kbd "(") 'skeleton-pair-insert-maybe) | |
(global-set-key (kbd "{") 'skeleton-pair-insert-maybe) | |
(global-set-key (kbd "[") 'skeleton-pair-insert-maybe) | |
(global-set-key (kbd "\"") 'skeleton-pair-insert-maybe) | |
(setq skeleton-pair 1) |
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
(create-fontset-from-ascii-font "Source Han Code JP-13:weight=light:slant=normal" nil "hancode") | |
(set-fontset-font "fontset-hancode" 'unicode (font-spec :family "Source Han Code JP Light" :size 13) nil 'append) | |
(add-to-list 'default-frame-alist '(font . "fontset-hancode")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment