mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
28 lines
643 B
Text
28 lines
643 B
Text
;; Main package list to fetch from melpa.
|
|
(defvar bundle-packages
|
|
'(evil
|
|
evil-surround
|
|
))
|
|
|
|
;; Package manager configuration.
|
|
(require 'package)
|
|
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
|
|
(package-initialize)
|
|
|
|
(defun bundle-sync ()
|
|
"Install packages."
|
|
(interactive)
|
|
(package-refresh-contents)
|
|
(dolist (p bundle-packages)
|
|
(when (not (package-installed-p p))
|
|
(package-install p))))
|
|
|
|
;; Autosync on obvious miss
|
|
(cond ((not (file-exists-p "~/.emacs.d/elpa")) (bundle-sync)))
|
|
|
|
;; Evil
|
|
(require 'evil)
|
|
(evil-mode 1)
|
|
(menu-bar-mode -1)
|
|
(require 'evil-surround)
|
|
(global-evil-surround-mode 1)
|