add helm, cond cas for installing packages.

This commit is contained in:
Ivan Malison 2014-10-28 01:48:13 -07:00
parent a7d48a2613
commit d56004fd91

View File

@ -50,7 +50,7 @@
auto-complete project-root popup web-beautify auto-complete project-root popup web-beautify
js2-mode js3-mode sphinx-doc ansi-color pytest js2-mode js3-mode sphinx-doc ansi-color pytest
exec-path-from-shell base16-theme slime exec-path-from-shell base16-theme slime
string-inflection yasnippet yaml-mode) string-inflection yasnippet yaml-mode helm)
"Packages that must be installed at launch.") "Packages that must be installed at launch.")
(defun ensure-package-installed (packages) (defun ensure-package-installed (packages)
@ -67,7 +67,10 @@ Return a list of installed packages or nil for every package not installed."
(package-install package)))) (package-install package))))
packages)) packages))
(condition-case ex
(ensure-package-installed my-packages) (ensure-package-installed my-packages)
('error (package-refresh-contents)
(ensure-package-installed my-packages) nil))
;; ============================================================================= ;; =============================================================================
;; General Emacs Options ;; General Emacs Options