Permalink
Browse files

load files the easy way

  • Loading branch information...
1 parent 1a8ead7 commit 77afba2d7edbabe60584d63f93b2487b45328830 @bostonaholic bostonaholic committed Mar 1, 2012
View
0 .emacs.d/bindings.el → .emacs.d/config-bindings.el
File renamed without changes.
View
4 .emacs.d/config-clojure-mode.el
@@ -0,0 +1,4 @@
+;; use this function to open a repl on heroku deployed apps
+(defun heroku-repl ()
+ (interactive)
+ (inferior-lisp "heroku run lein repl"))
View
25 .emacs.d/cosmetics.el → .emacs.d/config-cosmetics.el
@@ -30,19 +30,12 @@
:foreground "yellow"
:weight 'bold)
-;; add themes downloaded from ELPA to load path
-(add-to-list 'custom-theme-load-path
- "~/.emacs.d/elpa/color-theme-solarized-20120229/")
-
-;; Allow loading of custom themes
-(custom-set-variables
- '(custom-safe-themes '("7acc0466fce1bc967ce1561c8c4fdcbf4358b4ae692577562a3ed747c109f9d7" ; zenburn
- "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" ; solarized-dark
- default)))
-
-;; Choose your theme
-;; (load-theme 'deeper-blue)
-;; (load-theme 'tango-dark)
-;; (load-theme 'tsdh-dark)
-(load-theme 'solarized-dark)
-;; (load-theme 'zenburn)
+;;;
+;;; Choose your theme
+;;;
+;; (load-theme 'deeper-blue t)
+;; (load-theme 'tango-dark t)
+;; (load-theme 'tsdh-dark t)
+(load-theme 'solarized-dark t)
+;; (load-theme 'zenburn t)
+
View
4 .emacs.d/hooks.el → .emacs.d/config-hooks.el
@@ -8,3 +8,7 @@
(eval-after-load 'javascript-mode
'(ignore-errors
(add-hook 'javascript-mode-hook 'esk-paredit-nonlisp)))
+
+;; ac-slime config
+;; (add-hook 'slime-mode-hook 'set-up-slime-ac)
+;; (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
View
0 .emacs.d/registers.el → .emacs.d/config-registers.el
File renamed without changes.
View
4 .emacs.d/workarounds.el → .emacs.d/config-workarounds.el
@@ -14,3 +14,7 @@
;; set mustache-mode
(require 'mustache-mode)
(add-to-list 'auto-mode-alist '("\\.hbs$" . mustache-mode))
+
+;; (add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
+;; (require 'auto-complete-config)
+;; (ac-config-default)
View
1 .emacs.d/yasnippet.el → .emacs.d/config-yasnippet.el
@@ -1,4 +1,3 @@
-;; yasnippet config
(require 'yasnippet)
(yas/initialize)
(setq yas/root-directory "~/.emacs.d/snippets")
View
32 .emacs.d/init.el
@@ -32,7 +32,8 @@
oddmuse
yasnippet
yaml-mode
- color-theme-solarized
+ ;; themes
+ solarized-theme
zenburn-theme))
(dolist (p my-packages)
@@ -50,21 +51,18 @@
;; Emacs is fast for OSX again!
(setq font-lock-verbose nil)
-;; load more config files
-(setq emacs-config-dir "~/.emacs.d/")
-(load (expand-file-name "bindings.el" emacs-config-dir))
-(load (expand-file-name "cosmetics.el" emacs-config-dir))
-(load (expand-file-name "hooks.el" emacs-config-dir))
-(load (expand-file-name "registers.el" emacs-config-dir))
-
-(load (expand-file-name "yasnippet.el" emacs-config-dir))
-(load (expand-file-name "mustache-mode.el" emacs-config-dir))
+;; Configuration root directory path.
+(setq config-dir (file-name-directory
+ (or (buffer-file-name) load-file-name)))
-(load (expand-file-name "workarounds.el" emacs-config-dir))
+(add-to-list 'load-path config-dir)
-;; start eshell upon starting emacs
-(eshell)
-
-;; graaaaaaah! eshell doesn't respect eval-after-load for some reason:
-(with-current-buffer "*eshell*" (setq pcomplete-cycle-completions nil))
-(set-face-foreground 'eshell-prompt "turquoise")
+;; load more config files
+(load "config-bindings")
+(load "config-clojure-mode")
+(load "config-cosmetics")
+(load "config-hooks")
+(load "config-registers")
+(load "mustache-mode")
+(load "config-workarounds")
+(load "config-yasnippet")

0 comments on commit 77afba2

Please sign in to comment.