emacs.el
changeset 8 f16b95667aa6
parent 6 5f0680e88468
child 9 c72d0d9f61cb
equal deleted inserted replaced
7:de2d02049ed6 8:f16b95667aa6
    12 
    12 
    13 (display-time-mode t)                                                 ; show clock
    13 (display-time-mode t)                                                 ; show clock
    14 (column-number-mode t)                                                ; show column numbers
    14 (column-number-mode t)                                                ; show column numbers
    15 (delete-selection-mode t)                                             ; replace highlighted text
    15 (delete-selection-mode t)                                             ; replace highlighted text
    16 (windmove-default-keybindings)                                        ; move between windows with shift-arrow
    16 (windmove-default-keybindings)                                        ; move between windows with shift-arrow
    17 (setq-default indent-tabs-mode nil)                                     ; mouse hover variables
    17 (setq-default indent-tabs-mode nil)                                   ; mouse hover variables
    18 
    18 
    19 (ido-mode t)                                                          ; file/buffer selector
    19 (ido-mode t)                                                          ; file/buffer selector
    20 (setq-default ido-enable-flex-matching t)                             ; fuzzy matching is a must have
    20 (setq-default ido-enable-flex-matching t)                             ; fuzzy matching is a must have
    21 (add-hook 'text-mode-hook 'flyspell-mode t)                           ; spellcheck text
    21 (add-hook 'text-mode-hook 'flyspell-mode t)                           ; spellcheck text
    22 
    22 
    31 (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
    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 'nav)                                                        ; load nav bar
    36 (require 'hoersten-c-style)                                           ; load c specific lisp
    37 (require 'hoersten-c-style)                                           ; load c specific lisp
    37 
    38 
    38 (require 'pretty-mode)                                                ; convert characters to unicode
    39 (require 'pretty-mode)                                                ; convert characters to unicode
    39 (global-pretty-mode t)
    40 (global-pretty-mode t)
    40 (setq haskell-font-lock-symbols 'unicode)
    41 (setq haskell-font-lock-symbols 'unicode)
    81     (menu-bar-mode nil) ; remove menu bar in no-x mode
    82     (menu-bar-mode nil) ; remove menu bar in no-x mode
    82   (tool-bar-mode nil)   ; remove tool bar
    83   (tool-bar-mode nil)   ; remove tool bar
    83   (scroll-bar-mode nil) ; remove scroll bar
    84   (scroll-bar-mode nil) ; remove scroll bar
    84   (custom-set-faces '(default ((t (:background "#000000" :foreground "#ffffff" :height 101 :family "DejaVu Sans Mono")))))
    85   (custom-set-faces '(default ((t (:background "#000000" :foreground "#ffffff" :height 101 :family "DejaVu Sans Mono")))))
    85   (setq default-frame-alist '((width . 100) (height . 50) (menu-bar-lines . 1)))
    86   (setq default-frame-alist '((width . 100) (height . 50) (menu-bar-lines . 1)))
    86   (visual-line-mode t)                                                  ; word wrap break on whitespace
    87   (visual-line-mode t)  ; word wrap break on whitespace
    87 
    88 
    88   ;; twilight theme
    89   ;; twilight theme
    89   (require 'color-theme)
    90   (require 'color-theme)
    90   (load "color-theme-twilight")
    91   (load "color-theme-twilight")
    91   (color-theme-twilight)
    92   (color-theme-twilight)