Skip to content

Instantly share code, notes, and snippets.

@kosho
Last active August 3, 2016 23:30
Show Gist options
  • Save kosho/9465d4435164eb29f9e7d443533b71bc to your computer and use it in GitHub Desktop.
Save kosho/9465d4435164eb29f9e7d443533b71bc to your computer and use it in GitHub Desktop.

Set of Emacs init.el Configurations

  • auto-complete-blackets.el: Auto complete corresponding blackets
  • use-source-han-code-jp.el: Use Source Han Code JP font
;; 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)
(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