Permalink
Browse files

Adding Pallet and Cask to emacs

  • Loading branch information...
kelsin committed Mar 7, 2014
1 parent f0857bc commit 6376b84248431473914d624d7ceb630817b8340e
Showing with 67 additions and 85 deletions.
  1. +48 −0 .emacs.d/Cask
  2. +5 −68 .emacs.d/init.el
  3. +5 −5 .emacs.d/kelsin-java.el
  4. +8 −12 .gitignore
  5. +1 −0 .shrc
@@ -0,0 +1,48 @@
(source melpa)
(source gnu)

(depends-on "auto-complete")
(depends-on "browse-kill-ring")
(depends-on "cask")
(depends-on "clojure-mode")
(depends-on "coffee-mode")
(depends-on "dash")
(depends-on "dos")
(depends-on "epl")
(depends-on "etags-table")
(depends-on "f")
(depends-on "feature-mode")
(depends-on "fill-column-indicator")
(depends-on "flycheck")
(depends-on "fringe-helper")
(depends-on "gh")
(depends-on "gist")
(depends-on "git-commit-mode")
(depends-on "git-rebase-mode")
(depends-on "haml-mode")
(depends-on "haskell-mode")
(depends-on "highlight-indentation")
(depends-on "javadoc-lookup")
(depends-on "js2-mode")
(depends-on "less-css-mode")
(depends-on "logito")
(depends-on "lua-mode")
(depends-on "magit")
(depends-on "malabar-mode")
(depends-on "markdown-mode")
(depends-on "pallet")
(depends-on "pcache")
(depends-on "php-mode")
(depends-on "pkg-info")
(depends-on "popup")
(depends-on "powerline")
(depends-on "rainbow-mode")
(depends-on "s")
(depends-on "sass-mode")
(depends-on "scss-mode")
(depends-on "slim-mode")
(depends-on "smex")
(depends-on "textile-mode")
(depends-on "web-mode")
(depends-on "yaml-mode")
(depends-on "yasnippet")
@@ -56,78 +56,15 @@
(path-add "/usr/bin")
(path-add "/usr/local/bin")))

;; Load Packages
(require 'cask "~/.cask/cask.el")
(cask-initialize)
(require 'pallet)

;; Custom File
(setq custom-file "~/.emacs.d/kelsin-custom.el")
(load custom-file)

;; Load the package manager
(require 'package)

;; Initialize Packages
(package-initialize)

;; Add the Melpa Repo: http://melpa.milkbox.net/
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)

;; Tell emacs not to load packages, since I'm going to manually
(setq package-enable-at-startup nil)

;; Packages I'm using
(setq kelsin/packages
'(auto-complete
browse-kill-ring
clojure-mode
coffee-mode
dos
etags-table
feature-mode
fill-column-indicator
flycheck
gist
haml-mode
haskell-mode
highlight-indentation
javadoc-lookup
js2-mode
less-css-mode
lua-mode
magit
malabar-mode
markdown-mode
php-mode
powerline
rainbow-mode
sass-mode
scss-mode
slim-mode
smex
textile-mode
yaml-mode
yasnippet
web-mode))

;; If we don't have packages installed, update package archives
(when (not package-archive-contents)
(package-refresh-contents))

;; If we don't have packages installed, install mine!
(dolist (pkg kelsin/packages)
(when (and (not (package-installed-p pkg))
(assoc pkg package-archive-contents))
(package-install pkg)))

(defun package-list-unaccounted-packages ()
"Like `package-list-packages', but shows only the packages that
are installed and are not in `kelsin/packages'. Useful for
cleaning out unwanted packages."
(interactive)
(package-show-package-list
(remove-if-not (lambda (x) (and (not (memq x kelsin/packages))
(not (package-built-in-p x))
(package-installed-p x)))
(mapcar 'car package-archive-contents))))

;; Load Other Modes
(require 'kelsin-modes)

@@ -166,11 +166,11 @@
(setq c-basic-offset 4
tab-width 4
indent-tabs-mode t)))
(if cygwin-p
(progn
(setq malabar-util-path-separator ";")
(setq malabar-util-path-filter 'cygwin-convert-file-name-to-windows)
(setq malabar-util-groovy-file-filter 'malabar-util-reverse-slash)))
;; (if cygwin-p
;; (progn
;; (setq malabar-util-path-separator ";")
;; (setq malabar-util-path-filter 'cygwin-convert-file-name-to-windows)
;; (setq malabar-util-groovy-file-filter 'malabar-util-reverse-slash)))

(provide 'kelsin-java)
;;; kelsin-java.el ends here
@@ -19,19 +19,9 @@ Gmail
# Work folder
blizzard

# Emacs Bookmarks
.emacs.bmk
.emacs.d/bookmarks

# Emacs Semantic
.emacs.d/semanticdb

# NERDTree Bookmarks
.NERDTreeBookmarks

# EIEIO state file
.emacs.d/srecode-map.el

# VirtualBox VMs
VirtualBox*

@@ -143,23 +133,29 @@ _viminfo
.xmonad/xmonad.o

# Emacs
.cask
*.elc
.emacs-places
.emacs.d/.org*
.emacs.bmk
.emacs.d/*.dat
.emacs.d/.cask
.emacs.d/.org*
.emacs.d/auto-save-list
.emacs.d/bookmarks
.emacs.d/completions
.emacs.d/elpa
.emacs.d/external
.emacs.d/games
.emacs.d/history
.emacs.d/semanticdb
.emacs.d/server
.emacs.d/session*
.emacs.d/srecode-map.el
.emacs.d/tramp
.emacs.d/url
.emacs.desktop
.emacs.desktop.lock
.emacsclient-caller
.emacs.d/server

# X
.Xauth*
1 .shrc
@@ -65,6 +65,7 @@ pathadd "/c/Program Files (x86)/GnuWin32/bin"
pathadd "/c/Program Files (x86)/Vim/vim74"
pathadd "$HOME/opt/ctags58"
pathadd "$HOME/.cabal/bin"
pathadd "$HOME/.cask/bin"
pathadd "$HOME/.rbenv/bin"
pathadd "$HOME/share/berklee/bin"
pathadd "$HOME/opt/eclipse"

0 comments on commit 6376b84

Please sign in to comment.