Emacs: Check basic-packages list and install any missing packages
Alan Pearce alan@alanpearce.co.uk
Tue, 14 May 2013 16:51:38 +0100
2 files changed, 28 insertions(+), 40 deletions(-)
jump to
D emacs/elisp/el-get-setup.el
@@ -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))
M emacs/init.el → emacs/init.el
@@ -21,6 +21,34 @@ (package-initialize) (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