Skip to content

Instantly share code, notes, and snippets.

@xuchunyang
Created January 24, 2015 13:57
Show Gist options
  • Save xuchunyang/3af0d2a854e9f6ebf798 to your computer and use it in GitHub Desktop.
Save xuchunyang/3af0d2a854e9f6ebf798 to your computer and use it in GitHub Desktop.
init.el
;;; init.el --- Sample `user-init-file' for chinese-pyim dev
;; use space to indent by default
(setq-default indent-tabs-mode nil)
;; Remove trailing whitespace
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;; Use git version of org-mode
(add-to-list 'load-path "~/repos/org-mode/lisp")
(add-to-list 'load-path "~/repos/org-mode/contrib/lisp")
(require 'ox-gfm)
(setq org-gfm-lang nil)
(require 'org)
(setq org-edit-src-content-indentation 0)
(org-babel-do-load-languages 'org-babel-load-languages
'((emacs-lisp . t)))
(setq org-confirm-babel-evaluate nil)
(add-to-list 'load-path "~/wip/chinese-pyim/")
(require 'chinese-pyim)
(require 'chinese-pyim-devtools)
(setq pyim-dicts '((:name "中文拼音词库" :file "/Users/xcy/Desktop/pyim-bigdict.txt" :coding utf-8-unix)))
(setq default-input-method "chinese-pyim")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment