美文网首页
Emacs日常记录 - 安装与配置

Emacs日常记录 - 安装与配置

作者: ppn | 来源:发表于2014-12-18 21:34 被阅读0次

1. Install Emacs

apt-get install emacs

2. Where is the emacs config file

~/.emacs

3. How to install a package in emacs

3.1 Find the.el file

3.2 Put it into a folder, e.g. ~/.emacs.d/

3.3 在配置文件中添加这个.el文件的所在目录路径,并进行相关配置

(add-to-list 'load-path "~/.emacs.d/")

3.4 在配置文件中调用这个库, 使用require函数

(require 'auto-complete-config)

3.5  在完成之后,在.emacs文件里,使用M-x eval-buffer启用当前配置文件

通过Package Manager 安装

3.1 Emacs 24提供了一个类似于的应用

(when (>= emacs-major-version 24)

     (require 'package)

     (package-initialize)

     (add-to-list 'package-archives 

           '("melpa" . "http://melpa.milkbox.net/packages/") t)

)

3.2 使用 list-package 即可查找,安装这些已经发布到这个库中的插件

相关文章

网友评论

      本文标题:Emacs日常记录 - 安装与配置

      本文链接:https://www.haomeiwen.com/subject/yiiotttx.html