From f047eb6cc310df64ef90def60644087925e762cd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 May 2013 16:51:38 +0100 Subject: Emacs: Check basic-packages list and install any missing packages --- emacs/elisp/el-get-setup.el | 40 ---------------------------------------- emacs/init.el | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 40 deletions(-) delete mode 100644 emacs/elisp/el-get-setup.el diff --git a/emacs/elisp/el-get-setup.el b/emacs/elisp/el-get-setup.el deleted file mode 100644 index 53f3a46..0000000 --- a/emacs/elisp/el-get-setup.el +++ /dev/null @@ -1,40 +0,0 @@ -(setq - eg:basic-packages - '( - auto-compile - auto-indent-mode - autopair - ace-jump-mode - bind-key - company - dired+ - diminish - expand-region - helm - help+ - help-fns+ - help-macro+ - help-mode+ - mic-paren - misc-cmds - multiple-cursors - projectile - project-persist - paredit - solarized-theme - smart-tab - smarttabs - smex - undo-tree - use-package - ) - - eg:windows-packages - '(ntcmd - w32-browser - ;; powershell - ;; powershell-mode - ) - - eg:cygwin-packages - '(windows-path)) diff --git a/emacs/init.el b/emacs/init.el index 4716c59..dbce9d9 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -21,6 +21,34 @@ (add-to-list 'load-path *elisp-dir*) +(mapc (lambda (package-name) + (unless (package-installed-p package-name) + (package-install package-name))) + '(auto-compile + auto-indent-mode + autopair + ace-jump-mode + bind-key + company + dired+ + diminish + expand-region + helm + nginx-mode + mic-paren + multiple-cursors + mustache-mode + projectile + project-persist + paredit + solarized-theme + smart-tab + smart-tabs-mode + smex + undo-tree + use-package + )) + (require 'use-package) (eval-when-compile -- cgit 1.4.1