equal
deleted
inserted
replaced
1 ;; ~/.emacs.d/init.el (~/.emacs) |
1 ;; ~/.emacs.d/init.el (~/.emacs) |
2 ;; Luke Hoersten <[email protected]> |
2 ;; Luke Hoersten <[email protected]> |
3 |
3 |
4 ;;;; General ;;;; |
4 ;;; Code: |
5 (add-to-list 'load-path "~/.emacs.d/elisp") ; set default emacs load path |
5 (add-to-list 'load-path "~/.emacs.d/elisp") ; set default emacs load path |
6 |
6 |
7 (setq-default |
7 (setq-default |
8 gc-cons-threshold 20000000 ; gc every 20 MB allocated (form flx-ido docs) |
8 gc-cons-threshold 20000000 ; gc every 20 MB allocated (form flx-ido docs) |
9 inhibit-splash-screen t ; disable splash screen |
9 inhibit-splash-screen t ; disable splash screen |
132 ;;; shell |
132 ;;; shell |
133 (global-set-key (kbd "C-c s") 'eshell) ; start shell |
133 (global-set-key (kbd "C-c s") 'eshell) ; start shell |
134 (exec-path-from-shell-copy-env "PYTHONPATH") |
134 (exec-path-from-shell-copy-env "PYTHONPATH") |
135 (exec-path-from-shell-initialize) |
135 (exec-path-from-shell-initialize) |
136 (eshell) |
136 (eshell) |
137 (add-hook 'eshell-mode-hook (lambda () (setenv "TERM" "emacs"))) |
|
138 (setq tramp-default-method "ssh") |
137 (setq tramp-default-method "ssh") |
|
138 (add-hook 'eshell-mode-hook |
|
139 (lambda () |
|
140 (setenv "TERM" "emacs") |
|
141 (setenv "PAGER" "cat"))) |
139 |
142 |
140 ;;; ido / smex / completion |
143 ;;; ido / smex / completion |
141 (setq-default |
144 (setq-default |
142 ido-enable-flex-matching t ; fuzzy matching for ido mode |
145 ido-enable-flex-matching t ; fuzzy matching for ido mode |
143 ido-create-new-buffer 'always ; create new buffer without prompt |
146 ido-create-new-buffer 'always ; create new buffer without prompt |
229 css-mode-hook |
232 css-mode-hook |
230 sass-mode-hook |
233 sass-mode-hook |
231 clojure-mode-hook |
234 clojure-mode-hook |
232 emacs-lisp-mode-hook |
235 emacs-lisp-mode-hook |
233 conf-mode-hook |
236 conf-mode-hook |
234 yaml-mode-hook)) |
237 yaml-mode-hook |
|
238 sql-mode-hook)) |
235 |
239 |
236 |
240 |
237 ;;; expand-region |
241 ;;; expand-region |
238 (global-set-key (kbd "C-=") 'er/expand-region) |
242 (global-set-key (kbd "C-=") 'er/expand-region) |
239 |
243 |