(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(menu-bar-mode nil) ;; menu-bar disable
'(scroll-bar-mode nil) ;; scroll-bar disable
'(tool-bar-mode nil)) ;; tool-bar disable
(setq visible-bell 0) ;; visible-bell disable
(setq inhibit-splash-screen t) ;; splash-screen inhibit
(setq default-directory "C:/Users/name/") ;; default-directory set
(set-face-attribute 'default nil :height 120) ;; font-size
(global-set-key (kbd "C-x C-c") nil) ;; hotkey of exit-disable
(prefer-coding-system 'utf-8) ;; preferred coding-system
(defalias 'yes-or-no-p 'y-or-n-p) ;; substitute ‘y-or-n-p’ for ‘yes-or-no-p’ everywhere
(setq make-backup-files nil) ;; turn off make-backup-files function
(set-background-color "#CCE8CF") ;; use apple-green background
(global-set-key (kbd "C-+") 'text-scale-increase)
(global-set-key (kbd "C--") 'text-scale-decrease)
(global-set-key (kbd "C-0") 'text-scale-adjust)
(set-frame-position (selected-frame) 0 0)
(set-frame-width (selected-frame) 120)
(set-frame-height (selected-frame) 38)
(add-hook 'org-mode-hook (lambda() (setq truncate-lines nil))) ;; truncate-lines in org-mode
参考链接: