yangxin0
2014-12-10 20:42:44 +08:00
(menu-bar-mode t)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq display-time-24hr-format t)
(setq kill-ring-max 200)
(setq inhibit-startup-message t)
(setq major-mode 'text-mode)
(show-paren-mode t)
(setq frame-title-format "%f")
(setq make-backup-files nil)
(fset 'yes-or-no-p 'y-or-n-p)
;;(global-hl-line-mode 1)
(setq-default indent-tabs-mode nil)
;;(global-font-lock-mode -1)
;;(set-background-color "light grey")
(fringe-mode -1)
(set-fringe-mode 0)
(defun nil-fun()
(interactive))
;; key binding
(define-key esc-map "g" 'goto-line)
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "C-x C-z") 'undo)
(global-set-key (kbd "C-\\") 'nil-fun)
;;(global-set-key (kbd "<mouse-3>") 'nil-fun)
;;(global-set-key (kbd "<down-mouse-1>") 'nil-fun)
(setq mac-option-modifier 'super)
(setq mac-command-modifier 'meta)
(global-set-key (kbd "C-j") 'newline-and-indent)
(set-face-attribute 'default nil :font "Consolas 16")
(dolist (charset '(kana han symbol cjk-misc bopomofo))
(set-fontset-font
(frame-parameter nil 'font) charset
(font-spec :family "Microsoft Yahei" :size 13)))