Emacs 配置
Posted wanghaiyang1930
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Emacs 配置相关的知识,希望对你有一定的参考价值。
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://stackoverflow.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
以上是关于Emacs 配置的主要内容,如果未能解决你的问题,请参考以下文章