Emacs包管理器el-get

官网给出的懒人安装办法

(url-retrieve
 "https://github.com/dimitri/el-get/raw/master/el-get-install.el"
 (lambda (s)
   (end-of-buffer)
   (eval-print-last-sexp)))

复制上面的代码到*scratch*执行,安装过程持续大概3分钟。

el-get默认安装在~/.emacs.d/el-get下面,添加如下代码到.emacs里面,让el-get随Emacs启动

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

(unless (require 'el-get nil 'noerror)
  (with-current-buffer
      (url-retrieve-synchronously
       "https://raw.github.com/dimitri/el-get/master/el-get-install.el")
    (goto-char (point-max))
    (eval-print-last-sexp)))

(add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipes")
(el-get 'sync)

使用方法

M-x el-get-install                   安装包
M-x el-get-remove
M-x el-get-reinstall

M-x el-get-update
M-x el-get-update-all
M-x el-get-reload

M-x el-get-list-packages             列出可用的包
M-x el-get-describe
M-x el-get-find-recipe-file

举几个个例子,

M-x el-get-install RET newlisp-mode
M-x el-get-install RET markdown-mode
M-x el-get-install RET graphviz-dot-mode
M-x el-get-install RET git-emacs


你可能感兴趣的:(Emacs包管理器el-get)