diff options
author | Alan Pearce | 2013-05-14 16:20:12 +0100 |
---|---|---|
committer | Alan Pearce | 2013-05-14 16:20:12 +0100 |
commit | ca36b49592990ec69413050dd4cc085256fa6ad2 (patch) | |
tree | 368d48fa64da67ccc1b7f84bbbe0077473505a31 /emacs/init.el | |
parent | f55e24f8679d9862cab4f8cb84772781b900e792 (diff) | |
download | nixfiles-ca36b49592990ec69413050dd4cc085256fa6ad2.tar.lz nixfiles-ca36b49592990ec69413050dd4cc085256fa6ad2.tar.zst nixfiles-ca36b49592990ec69413050dd4cc085256fa6ad2.zip |
Emacs: Remove el-get in favour of package.el
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/emacs/init.el b/emacs/init.el index dc594fd1..4716c595 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -10,36 +10,14 @@ (setq custom-file "~/.emacs.d/custom.el") ;;;; Package Management -(setq *el-get-dir* (expand-file-name "el-get/" user-emacs-directory) - *elisp-dir* (expand-file-name "elisp/" user-emacs-directory) +(setq *elisp-dir* (expand-file-name "elisp/" user-emacs-directory) *custom-dir* (expand-file-name "custom/" user-emacs-directory) - el-get-github-default-url-type "git" - el-get-emacswiki-base-url "http://raw.github.com/emacsmirror/emacswiki.org/master/" package-archives '(("ELPA" . "http://tromey.com/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/"))) -(defun add-subdirs-to-load-path (path) - (unless (member path load-path) - (mapc (lambda (file) - (let ((full-path (concat path file))) - (if (and (not (string-prefix-p "." file)) - (file-directory-p full-path)) - (add-to-list 'load-path full-path)))) - (directory-files path))) - (add-to-list 'load-path path)) - -(if (file-exists-p (concat *el-get-dir* "el-get")) - (add-subdirs-to-load-path *el-get-dir*) - (unless (require 'el-get nil t) - (with-current-buffer - (url-retrieve-synchronously - "https://raw.github.com/dimitri/el-get/master/el-get-install.el") - (make-local-variable 'el-get-master-branch) - (goto-char (point-max)) - (eval-print-last-sexp) - (load (concat *elisp-dir* "el-get-setup"))))) +(package-initialize) (add-to-list 'load-path *elisp-dir*) @@ -49,15 +27,6 @@ (unless (fboundp 'diminish) (require 'diminish nil t))) -(use-package el-get - :commands (el-get-init - el-get-install - el-get-reinstall - el-get-remove - el-get-update - el-get-self-update - el-get-describe)) - ;;;; Style (use-package linum |