Taylor Bockman
9 years ago
6 changed files with 53 additions and 0 deletions
@ -0,0 +1,4 @@
|
||||
/home/taylor/.emacs.d/package.el |
||||
/home/taylor/.emacs.d/#package.el# |
||||
/home/taylor/.emacs.d/init.el |
||||
/home/taylor/.emacs.d/#init.el# |
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@
|
||||
(require 'package) |
||||
|
||||
(add-to-list 'package-archives |
||||
'("melpa" . "https://melpa.org/packages/") t) |
||||
(when (< emacs-major-version 24) |
||||
;; For important compatibility libraries like cl-lib |
||||
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))) |
||||
|
||||
(package-initialize) |
@ -0,0 +1,2 @@
|
||||
(require 'package) |
||||
(package-initialize) |
@ -0,0 +1,18 @@
|
||||
(require 'cl) |
||||
|
||||
(defvar my-packages |
||||
'(ack-and-a-half clojure-mode coffee-mode paredit solarized-theme) |
||||
"Packages to make sure are installed") |
||||
|
||||
(defun my-packages-installed-p () |
||||
(loop for p in my-packages |
||||
when (not (package-installed-p p)) do (return nil) |
||||
finally (return t))) |
||||
|
||||
(unless (my-packages-installed-p) |
||||
;; check for new packages (package versions) |
||||
(package-refresh-contents) |
||||
;; install the missing packages |
||||
(dolist (p my-packages) |
||||
(when (not (package-installed-p p)) |
||||
(package-install p)))) |
@ -0,0 +1,18 @@
|
||||
(require 'cl) |
||||
|
||||
(defvar my-packages |
||||
'(ack-and-a-half clojure-mode coffee-mode paredit) |
||||
"Packages to make sure are installed") |
||||
|
||||
(defun my-packages-installed-p () |
||||
(loop for p in my-packages |
||||
when (not (package-installed-p p)) do (return nil) |
||||
finally (return t))) |
||||
|
||||
(unless (my-packages-installed-p) |
||||
;; check for new packages (package versions) |
||||
(package-refresh-contents) |
||||
;; install the missing packages |
||||
(dolist (p my-packages) |
||||
(when (not (package-installed-p p)) |
||||
(package-install p)))) |
Loading…
Reference in new issue