码迷,mamicode.com
首页 > 系统相关 > 详细

Emacs 配置

时间:2019-11-15 20:07:28      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:custom   htm   init   插件   lib   ctrl   pack   isp   stack   

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 配置

标签:custom   htm   init   插件   lib   ctrl   pack   isp   stack   

原文地址:https://www.cnblogs.com/wanghaiyang1930/p/11869197.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!