Emacs 配置说明
Emacs配置文件在哪里?
Your init file contains personal EmacsLisp code that you want to execute when you start Emacs. For GnuEmacs, it is ~/.emacs or _emacs or ~/.emacs.d/init.el. For XEmacs, it is ~/.xemacs or ~/.xemacs/init.el. For AquamacsEmacs, it is ~/.emacs or ~/Library/Preferences/Aquamacs Emacs/Preferences.el
参考:https://www.cnblogs.com/eat-and-die/p/10309681.html
包管理:
(require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) (package-initialize)
显示行号:
# 显示行号 (global-linum-mode 1) ; (setq linum-format “%d “);
更换主题:
# 选择主题 https://github.com/hbin/molokai-theme (setq molokai-theme-kit t) (add-to-list 'custom-theme-load-path "your path") (load-theme 'molokai t)
添加目录树:
# 下载插件至随意目录 https://github.com/jaypei/emacs-neotree 然后将目录配置在下方,F8将显示目录
# https://*.com/questions/3538064/is-there-something-similar-for-emacs-like-vimss-nerdtree (add-to-list 'load-path "/some/path/neotree") (require 'neotree) (global-set-key [f8] 'neotree-toggle)
快捷键:
切换窗口:Ctrl + x o
关闭窗口:Ctrl + x 0