init.el
changeset 103 f76683958fb4
parent 102 c87589ea77d5
equal deleted inserted replaced
102:c87589ea77d5 103:f76683958fb4
     1 ;; ~/.emacs.d/init.el (~/.emacs)
     1 ;;; init --- Summary: Luke Hoersten <[email protected]> personal init file
     2 ;; Luke Hoersten <[email protected]>
     2 
       
     3 ;;; Commentary:
       
     4 ;;; ~/.emacs.d/init.el (~/.emacs)
     3 
     5 
     4 ;;; Code:
     6 ;;; Code:
     5 (add-to-list 'load-path "~/.emacs.d/elisp")   ; set default emacs load path
     7 (add-to-list 'load-path "~/.emacs.d/elisp")   ; set default emacs load path
     6 
     8 
     7 (setq-default
     9 (setq-default
    31 (global-subword-mode t)                       ; move by camelCase words
    33 (global-subword-mode t)                       ; move by camelCase words
    32 (global-hl-line-mode t)                       ; highlight current line
    34 (global-hl-line-mode t)                       ; highlight current line
    33 (global-set-key (kbd "C-c c") 'compile)       ; compile
    35 (global-set-key (kbd "C-c c") 'compile)       ; compile
    34 (global-set-key (kbd "C-c r") 'recompile)     ; recompile
    36 (global-set-key (kbd "C-c r") 'recompile)     ; recompile
    35 (global-set-key (kbd "C-c a") 'align-regexp)  ; align
    37 (global-set-key (kbd "C-c a") 'align-regexp)  ; align
    36 (global-set-key (kbd "C-c g") 'ag)            ; ag
    38 (global-set-key (kbd "C-c g") 'rg)            ; rg
    37 
    39 
    38 
    40 
    39 ;;; ediff
    41 ;;; ediff
    40 (setq-default
    42 (setq-default
    41   ediff-split-window-function 'split-window-horizontally
    43   ediff-split-window-function 'split-window-horizontally
    61 
    63 
    62 
    64 
    63 ;;;; Packages ;;;;
    65 ;;;; Packages ;;;;
    64 (package-initialize)
    66 (package-initialize)
    65 (require 'package-require)
    67 (require 'package-require)
    66 (package-require '(ag company exec-path-from-shell expand-region flx-ido
    68 (package-require '(rg company exec-path-from-shell expand-region flx-ido
    67  smex markdown-mode markdown-mode+ hgignore-mode move-text paredit
    69  smex markdown-mode markdown-mode+ hgignore-mode move-text paredit
    68  rainbow-delimiters json-mode json-reformat flycheck
    70  rainbow-delimiters json-mode json-reformat flycheck
    69  solarized-theme terraform-mode visual-regexp yasnippet yaml-mode
    71  solarized-theme terraform-mode visual-regexp yasnippet yaml-mode
    70  zencoding-mode))
    72  zencoding-mode))
    71 
    73 
   248 
   250 
   249 
   251 
   250 ;;; visual-regexp
   252 ;;; visual-regexp
   251 (global-set-key (kbd "C-M-%") 'vr/query-replace)
   253 (global-set-key (kbd "C-M-%") 'vr/query-replace)
   252 (global-set-key (kbd "M-%") 'vr/replace)
   254 (global-set-key (kbd "M-%") 'vr/replace)
       
   255 
       
   256 (provide 'init)
       
   257 ;;; init.el ends here