Browse Source

initial emacs config

master
Taylor Bockman 9 years ago
parent
commit
e1ed7d0a72
  1. 4
      dotfiles/emacs.d/auto-save-list/.saves-5311-ares~
  2. 2
      dotfiles/emacs.d/elpa/archives/melpa/archive-contents
  3. 9
      dotfiles/emacs.d/init.el
  4. 2
      dotfiles/emacs.d/init.el~
  5. 18
      dotfiles/emacs.d/package.el
  6. 18
      dotfiles/emacs.d/package.el~

4
dotfiles/emacs.d/auto-save-list/.saves-5311-ares~

@ -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#

2
dotfiles/emacs.d/elpa/archives/melpa/archive-contents

File diff suppressed because one or more lines are too long

9
dotfiles/emacs.d/init.el

@ -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)

2
dotfiles/emacs.d/init.el~

@ -0,0 +1,2 @@
(require 'package)
(package-initialize)

18
dotfiles/emacs.d/package.el

@ -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))))

18
dotfiles/emacs.d/package.el~

@ -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…
Cancel
Save