ansible/roles/dotfiles/files/.emacs.d/ensure.el

36 lines
626 B
EmacsLisp
Raw Permalink Normal View History

2023-04-11 14:32:07 +00:00
(defun ensure-package (package)
(unless (package-installed-p package)
(package-install package)))
(unless (file-directory-p "/home/kyle/.emacs.d/elpa/archives/melpa")
(package-refresh-contents))
(let ((initial-package-list
'(auto-complete
cargo
;; chess
cider
geiser
;; gnugo
go ;; play the game
go-autocomplete
go-direx
go-guru
go-mode
jedi
keychain-environment
lua-mode
luarocks
magit
markdown-mode
paredit
pelican-mode
projectile
racket-mode
rust-mode
scpaste
slime
undo-tree)))
(dolist (package initial-package-list)
(ensure-package package)))