init.el
changeset 25 303d1b762ccc
parent 23 9c7fc00cc7a3
child 26 bd86fe64dfc8
equal deleted inserted replaced
24:96bd2f4c9962 25:303d1b762ccc
    85 ;; terminal and shell
    85 ;; terminal and shell
    86 (global-set-key (kbd "C-c t") '(lambda () (interactive) (ansi-term "bash" "term"))) ; start term
    86 (global-set-key (kbd "C-c t") '(lambda () (interactive) (ansi-term "bash" "term"))) ; start term
    87 (global-set-key (kbd "C-c s") 'shell) ; start shell - acts like emacs buffer
    87 (global-set-key (kbd "C-c s") 'shell) ; start shell - acts like emacs buffer
    88 (ansi-color-for-comint-mode-on)       ; color in shell buffer
    88 (ansi-color-for-comint-mode-on)       ; color in shell buffer
    89 (setq-default
    89 (setq-default
       
    90  comint-prompt-read-only t            ; don't type on prompt
    90  comint-scroll-to-bottom-on-input t   ; only type on prompt
    91  comint-scroll-to-bottom-on-input t   ; only type on prompt
    91  comint-scroll-show-maximum-output t) ; place text at bottom
    92  comint-scroll-show-maximum-output t) ; place text at bottom
    92 
    93 
    93 ;;;;;;;;;;;;; includes & requires ;;;;;;;;;;;;;
    94 ;;;;;;;;;;;;; includes & requires ;;;;;;;;;;;;;
    94 
    95 
    95 ;; includes
    96 ;; includes
    96 (require 'hoersten-pastebin-region) ; send selected text to pastebin
    97 (require 'hoersten-pastebin-region) ; send selected text to pastebin
    97 (require 'hoersten-c-style)         ; load c specific lisp
    98 (require 'hoersten-c-style)         ; load c specific lisp
    98 (require 'vala-mode)                ; vala programming language
    99 (require 'vala-mode)                ; vala programming language
    99 
   100 
   100 ;; Xrefactory
       
   101 ;; (setq load-path (cons "~/xref/emacs" load-path))
       
   102 ;; (setq exec-path (cons "~/xref" exec-path))
       
   103 ;; (load "xrefactory")
       
   104 
       
   105 ;; nav mode
   101 ;; nav mode
   106 (add-to-list 'load-path "~/.emacs.d/nav/")
   102 (add-to-list 'load-path "~/.emacs.d/nav/")
   107 (require 'nav)
   103 (require 'nav)
   108 
   104 
   109 ;; unicode
   105 ;; unicode
   110 (require 'pretty-mode)
   106 (require 'pretty-mode)
   111 (global-pretty-mode t)
   107 (global-pretty-mode t)
   112 (setq haskell-font-lock-symbols 'unicode)
       
   113 
   108 
   114 ;; snippets
   109 ;; snippets
   115 (add-to-list 'load-path "~/.emacs.d/yasnippet/")
   110 (add-to-list 'load-path "~/.emacs.d/yasnippet/")
   116 (require 'yasnippet)
   111 (require 'yasnippet)
   117 (yas/initialize)
   112 (yas/initialize)
   123  (lambda ()
   118  (lambda ()
   124    (setq
   119    (setq
   125     tab-width 3
   120     tab-width 3
   126     python-indent 3
   121     python-indent 3
   127     indent-tabs-mode t)))
   122     indent-tabs-mode t)))
       
   123 
       
   124 ;; haskell mode
       
   125 (add-hook
       
   126  'haskell-mode-hook
       
   127  (lambda ()
       
   128    (capitalized-words-mode)
       
   129    (setq
       
   130     haskell-font-lock-symbols 'unicode
       
   131     haskell-doc-mode t
       
   132     imenu-add-menubar-index
       
   133     inferior-haskell-wait-and-jump t
       
   134     haskell-indent-mode t
       
   135     haskell-indent-offset 3)))
   128 
   136 
   129 ;; zencoding html
   137 ;; zencoding html
   130 (require 'zencoding-mode)
   138 (require 'zencoding-mode)
   131 (add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup modes
   139 (add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup modes
   132 
   140