init.el
changeset 100 e1c2df47261d
parent 99 c50532aea1f3
child 102 c87589ea77d5
equal deleted inserted replaced
99:c50532aea1f3 100:e1c2df47261d
     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")))
   137 (add-hook 'eshell-mode-hook
       
   138           (lambda ()
       
   139             (setenv "TERM" "emacs")
       
   140             (setenv "PAGER" "cat")))
   138 
   141 
   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
   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