src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2013-06-22 22:54:53 -0500
committerLuke Hoersten <[email protected]>2013-06-22 22:54:53 -0500
commitabcf074e2faa45b0c697071fd76e807ddb91001a (patch)
tree55f7c8f016253a1634249984358a0c6c01f4938e /init.el
parentd3e523e045d186bddcc6e796cd5067cfaf588349 (diff)
Cleaned up unused modes.
Diffstat (limited to 'init.el')
-rw-r--r--init.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/init.el b/init.el
index edbe89e..1125162 100644
--- a/init.el
+++ b/init.el
@@ -34,6 +34,7 @@
(global-font-lock-mode t) ; syntax highlighting
(global-set-key (kbd "C-c c") 'compile) ; compile
(global-set-key (kbd "C-c r") 'recompile) ; recompile
+(subword-mode t) ; move by camelCase words
;;; Darwin
@@ -66,17 +67,16 @@
(setenv "TERM" "emacs") ; enable colors
(setenv "ODBCSYSINI" "/home/lhoersten/myodbc")
(setenv "ODBCINI" "/home/lhoersten/myodbc/odbc.ini")
- (setenv "PATH" (concat "/usr/local/bin:" "~/.cabal/bin:" (getenv "PATH"))))
+ (setenv "PATH" (concat "/usr/local/bin:" (getenv "HOME") "/.cabal/bin:" (getenv "PATH"))))
(add-hook 'eshell-mode-hook 'setup-env)
-
(setup-env)
(eshell)
;;;; Mode-Specific ;;;;
;;; text-mode
-(add-hook 'text-mode-hook 'flyspell-mode t) ; spellcheck text
-(add-hook 'text-mode-hook 'turn-on-auto-fill) ; autofill text
+(add-hook 'fundamental-mode-hook 'flyspell-mode t) ; spellcheck text
+(add-hook 'fundamental-mode-hook 'turn-on-auto-fill) ; autofill text
;;; ido-mode
(ido-mode t) ; file/buffer selector
@@ -136,8 +136,6 @@
(require 'c-init) ; c specific elisp
(require 'haskell-init) ; haskell specific elisp
(require 'color-theme-init) ; color theme specific elisp
-(require 'vala-mode) ; vala programming language
-(require 'clojure-mode) ; clojure programming language
(require 'rainbow-delimiters) ; multi-colored parens
;;; function init
@@ -148,9 +146,10 @@
;;; yasnippets
(add-to-list 'load-path "~/.emacs.d/thirdparty/yasnippet")
(require 'yasnippet)
-(yas/initialize)
-(yas/load-directory "~/.emacs.d/thirdparty/yasnippet/snippets")
-(setq-default yas/prompt-functions '(yas/ido-prompt yas/dropdown-prompt)) ; use ido for multiple snippets
+(setq-default yas-prompt-functions '(yas-ido-prompt yas-dropdown-prompt)) ; use ido for multiple snippets
+(setq-default yas-snippet-dirs '("~/.emacs.d/thirdparty/yasnippet/snippets"
+ "~/.emacs.d/thirdparty/snippets"))
+(yas-global-mode t)
;;; java-mode
(add-hook 'java-mode-hook (lambda () (setq whitespace-line-column 140)))