emacs极简配置
作者:互联网
emacs配置是一个复杂的系统,但过于复杂不利于学习,学习要有一个简单的开始,用累加的方式,进行增量的学习,是一个好的策略。
第一步,创建 .emacs.d 目录
第二部,创建 init.el viper 这两个文件。
init.el ,该文件是emacs的主模式。
(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. '(custom-enabled-themes '(wombat))) (custom-set-faces ;; custom-set-faces 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. ) (setq package-archives '(("gnu" . "http://mirrors.ustc.edu.cn/elpa/gnu/") ("melpa" . "http://mirrors.ustc.edu.cn/elpa/melpa/") ("nongnu" . "http://mirrors.ustc.edu.cn/elpa/nongnu/"))) (package-initialize) (icomplete-mode 1) (ido-mode 1) (setq make-backup-files nil) (menu-bar-mode 0) (setq viper-mode t) (require 'viper)
viper,该文件是用于配置emacs的vim模式。
(setq viper-inhibit-startup-message 't) (setq viper-expert-level '5)
标签:极简,set,配置,custom,emacs,viper,mode,setq 来源: https://www.cnblogs.com/litifeng/p/16461411.html