init.el
changeset 84 2ad7a42a31f7
parent 82 12cf67bc486c
child 85 0b91f7fe5a89
equal deleted inserted replaced
83:ab9ebd922ccb 84:2ad7a42a31f7
    25 (windmove-default-keybindings)                ; move between windows with shift-arrow
    25 (windmove-default-keybindings)                ; move between windows with shift-arrow
    26 (fset 'yes-or-no-p 'y-or-n-p)                 ; replace yes/no prompts
    26 (fset 'yes-or-no-p 'y-or-n-p)                 ; replace yes/no prompts
    27 
    27 
    28 
    28 
    29 ;;; Coding
    29 ;;; Coding
    30 (which-func-mode t)                           ; show current function
    30 (which-function-mode t)                       ; show current function
    31 (transient-mark-mode t)                       ; show highlighting
    31 (transient-mark-mode t)                       ; show highlighting
    32 (global-font-lock-mode t)                     ; syntax highlighting
    32 (global-font-lock-mode t)                     ; syntax highlighting
    33 (global-set-key (kbd "C-c c") 'compile)       ; compile
    33 (global-set-key (kbd "C-c c") 'compile)       ; compile
    34 (global-set-key (kbd "C-c r") 'recompile)     ; recompile
    34 (global-set-key (kbd "C-c r") 'recompile)     ; recompile
    35 (global-set-key (kbd "C-c a") 'align-regexp)  ; align
    35 (global-set-key (kbd "C-c a") 'align-regexp)  ; align
    51 (when window-system
    51 (when window-system
    52   (tool-bar-mode -1)                          ; remove tool bar
    52   (tool-bar-mode -1)                          ; remove tool bar
    53   (scroll-bar-mode -1)                        ; remove scroll bar
    53   (scroll-bar-mode -1)                        ; remove scroll bar
    54   (unless is-mac (menu-bar-mode -1))          ; remove menu bar
    54   (unless is-mac (menu-bar-mode -1))          ; remove menu bar
    55   (visual-line-mode t)                        ; word wrap break on whitespace
    55   (visual-line-mode t)                        ; word wrap break on whitespace
    56   (set-default-font (if is-mac "Ubuntu Mono-12" "Ubuntu Mono-10.5")))
    56   (set-frame-font (if is-mac "Ubuntu Mono-12" "Ubuntu Mono-10.5")))
    57 
    57 
    58 
    58 
    59 ;;;; Packages ;;;;
    59 ;;;; Packages ;;;;
    60 
    60 
    61 (require 'package-require)
    61 (require 'package-require)
    62 (package-require '(company exec-path-from-shell expand-region
    62 (package-require '(company exec-path-from-shell expand-region
    63  smex markdown-mode markdown-mode+ ix hgignore-mode move-text paredit
    63  smex markdown-mode markdown-mode+ ix hgignore-mode move-text paredit
    64  rainbow-delimiters rainbow-mode json-mode json-reformat
    64  rainbow-delimiters rainbow-mode json-mode json-reformat flycheck
    65  solarized-theme terraform-mode visual-regexp yasnippet yaml-mode
    65  solarized-theme terraform-mode visual-regexp yasnippet yaml-mode
    66  zencoding-mode))
    66  zencoding-mode))
    67 
    67 
    68 
    68 
    69 ;;; custom requires
    69 ;;; custom requires
   143 
   143 
   144 ;;; emacs-lisp-mode
   144 ;;; emacs-lisp-mode
   145 (add-hook
   145 (add-hook
   146  'emacs-lisp-mode-hook
   146  'emacs-lisp-mode-hook
   147  (lambda ()
   147  (lambda ()
       
   148    (flycheck-mode)
   148    (rainbow-mode)
   149    (rainbow-mode)
   149    (enable-paredit-mode)))
   150    (enable-paredit-mode)))
   150 
   151 
   151 
   152 
   152 ;;; company-mode
   153 ;;; company-mode