emacs.el
changeset 6 5f0680e88468
parent 5 59b1838be594
child 8 f16b95667aa6
equal deleted inserted replaced
5:59b1838be594 6:5f0680e88468
     1 ;; ~/.emacs
     1 ;; ~/.emacs
     2 ;; Luke Hoersten <[email protected]>
     2 ;; Luke Hoersten <[email protected]>
     3 
     3 
     4 ;; general
     4 ;; general
     5 (setq-default load-path (cons "~/.emacs.d/" load-path))               ; set default emacs load path
     5 (setq-default load-path (cons "~/.emacs.d/" load-path))               ; set default emacs load path
     6 (setq-default user-mail-address "[email protected]")
       
     7 
     6 
     8 (setq-default ediff-split-window-function 'split-window-horizontally) ; diff horizontally
     7 (setq-default ediff-split-window-function 'split-window-horizontally) ; diff horizontally
     9 (setq-default x-select-enable-clipboard t)                            ; paste from X buffer
     8 (setq-default x-select-enable-clipboard t)                            ; paste from X buffer
    10 (setq-default inhibit-splash-screen t)                                ; disable splash screen
     9 (setq-default inhibit-splash-screen t)                                ; disable splash screen
    11 (put 'set-goal-column 'disabled nil)                                  ; enable goal column setting
    10 (put 'set-goal-column 'disabled nil)                                  ; enable goal column setting
    28 (global-font-lock-mode t)                                             ; syntax highlighting
    27 (global-font-lock-mode t)                                             ; syntax highlighting
    29 (global-whitespace-mode t)                                            ; show whitespace
    28 (global-whitespace-mode t)                                            ; show whitespace
    30 (setq-default whitespace-style '(tab-mark trailing tabs empty))       ; what whitespace elements to show
    29 (setq-default whitespace-style '(tab-mark trailing tabs empty))       ; what whitespace elements to show
    31 (add-hook 'before-save-hook 'whitespace-cleanup)                      ; cleanup whitespace on exit
    30 (add-hook 'before-save-hook 'whitespace-cleanup)                      ; cleanup whitespace on exit
    32 (global-set-key (kbd "C-c c") 'compile)                               ; compile
    31 (global-set-key (kbd "C-c c") 'compile)                               ; compile
       
    32 (global-set-key (kbd "C-c r") 'recompile)                             ; recompile
    33 
    33 
    34 (require 'hoersten-pastebin-region)                                   ; send selected text to pastebin
    34 (require 'hoersten-pastebin-region)                                   ; send selected text to pastebin
    35 (require 'mercurial)                                                  ; load mercurial mode
    35 (require 'mercurial)                                                  ; load mercurial mode
    36 (require 'hoersten-c-style)                                           ; load c specific lisp
    36 (require 'hoersten-c-style)                                           ; load c specific lisp
    37 
    37