3 ;; Added by Package.el. This must come before configurations of
4 ;; installed packages. Don't delete this line. If you don't want it,
5 ;; just comment it out by adding a semicolon to the start of the line.
6 ;; You may delete these explanatory comments.
9 (load-library "url-handlers")
11 (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
12 (setq exec-path (append exec-path '("/usr/local/bin")))
17 (add-to-list 'package-archives
18 '("melpa" . "http://melpa.milkbox.net/packages/") t)
19 (add-to-list 'package-archives
20 '("org" . "http://orgmode.org/elpa/") t)
21 ;(add-to-list 'package-archives
22 ; '("marmalade" . "http://marmalade-repo.org/packages/") t)
27 (unless (package-installed-p 'use-package)
28 (package-refresh-contents)
29 (package-install 'use-package))
31 (require 'use-package)
34 (add-to-list 'load-path "~/.emacs.d/elisp")
40 (use-package ido-vertical-mode
49 (hydra-add-font-lock))
53 (use-package ace-jump-mode
54 :commands ace-jump-mode
56 (bind-key "C-." 'ace-jump-mode))
70 ;(add-to-list 'load-path "~/.emacs.d/config")
72 ;; remove custom setting out of init.el
73 ;; http://emacsblog.org/2008/12/06/quick-tip-detaching-the-custom-file/
74 ;(setq custom-file "~/.emacs.d/custom.el")
75 ;(load custom-file 'noerror)
76 ;(require 'my-packages)
82 ;(require 'init-color-theme)
83 ;(require 'init-color-theme-2)
85 ;(require 'init-magit)
87 ;(require 'init-project)
88 ;(require 'init-ggtags)
90 ;(require 'init-projectile)
92 ;;;; conflict with C-c . in org-mode, disable it temporarily
93 ;;;;(require 'init-c-cpp)
94 ;(require 'init-key-binding)
95 ;(require 'init-winner)
96 ;(require 'init-minibuffer)
97 ;(require 'init-eshell)
99 ;; http://stackoverflow.com/questions/11484225/fix-an-auto-complete-mode-and-linum-mode-annoyance
100 ;;;(ac-linum-workaround)
103 ;(require 'init-mode-line)
104 ;(require 'init-workgroup2)
105 ;(require 'init-perl)
107 ;(add-to-list 'load-path "~/.emacs.d/Emacs-PDE-0.2.16/lisp/")
110 ;(require 'init-linum)
112 ;(require 'auto-complete)
113 ;(require 'auto-complete-config)
119 ;; page break configuration
121 ;(pretty-control-l-mode 1)
123 ;; persist command history of helm
125 ;(add-hook 'after-init-hook 'session-initialize)
128 ;(require 'use-package)
130 ;; persist command history of helm
131 ;(use-package savehist
132 ; :init (savehist-mode)
134 ; (setq history-length 1000
135 ; history-delete-duplicates t
136 ; savehist-additional-variables '(extended-command-history)))
139 ;; (setq history-length 1000
140 ;; history-delete-duplicates t
141 ;; savehist-additional-variables '(extended-command-history))
143 ; (setq split-height-threshold 0)
149 ;;;(require 'helm-gtags)
150 ;;;;(require 'setup-helm-gtags)
151 ;;;;(helm-gtags-mode 1)
152 ;;;;;; Enable helm-gtags-mode
153 ;;;(add-hook 'c-mode-hook 'helm-gtags-mode)
154 ;;;(add-hook 'c++-mode-hook 'helm-gtags-mode)
155 ;;;(add-hook 'asm-mode-hook 'helm-gtags-mode)
158 ;;;(custom-set-variables
159 ;;; '(helm-gtags-path-style 'relative)
160 ;;; '(helm-gtags-ignore-case t)
161 ;;; '(helm-gtags-auto-update t))
164 ;;;(eval-after-load "helm-gtags"
166 ;;; (define-key helm-gtags-mode-map (kbd "M-t") 'helm-gtags-find-tag)
167 ;;; (define-key helm-gtags-mode-map (kbd "M-r") 'helm-gtags-find-rtag)
168 ;;; (define-key helm-gtags-mode-map (kbd "M-s") 'helm-gtags-find-symbol)
169 ;;; (define-key helm-gtags-mode-map (kbd "M-g M-p") 'helm-gtags-parse-file)
170 ;;; (define-key helm-gtags-mode-map (kbd "C-c <") 'helm-gtags-previous-history)
171 ;;; (define-key helm-gtags-mode-map (kbd "C-c >") 'helm-gtags-next-history)
172 ;;; (define-key helm-gtags-mode-map (kbd "M-,") 'helm-gtags-pop-stack)))
179 ;;(require 'init-org)
180 ;(setq help-window-select t)
184 ;(require 'init-keychord)
186 ;(setq hydra-examples-verbatim t)
187 ;(require 'init-hydra)
190 ;(require 'ace-window)
191 ;(global-set-key (kbd "M-p") 'ace-window)
194 ;(require 'init-multi-term)
195 ;(require 'init-projectile)
197 ;(require 'page-break-lines)
198 ;(turn-on-page-break-lines-mode)
199 ;(global-page-break-lines-mode 1)
201 ;(setq projectile-completion-system 'helm)
202 ;(helm-projectile-on)
205 ;; show projectile name in mode-line
208 ;(if (locate-library "ediff")
210 ; (autoload 'ediff-files "ediff")
211 ; (autoload 'ediff-buffers "ediff")
213 ; (eval-after-load "ediff" '(progn
214 ; (message "doing ediff customisation")
215 ; (setq diff-switches "-u"
216 ; ediff-custom-diff-options "-U3"
217 ; ediff-split-window-function 'split-window-horizontally
218 ; ediff-window-setup-function 'ediff-setu;p-windows-plain)
220 ; (add-hook 'ediff-startup-hook 'ediff-toggle-w;ide-display)
221 ; (add-hook 'ediff-cleanup-hook 'ediff-toggle-w;ide-display)
222 ; (add-hook 'ediff-suspend-hook 'ediff-toggle-wide-display)))))
226 ;(defun update-diff-colors ()
227 ; "update the colors for diff faces"
228 ; (set-face-attribute 'diff-added nil
229 ; :foreground "white" :background "blue")
230 ; (set-face-attribute 'diff-removed nil
231 ; :foreground "white" :background "red3")
232 ; (set-face-attribute 'diff-changed nil
233 ; :foreground "white" :background "purple"))
234 ;(eval-after-load "diff-mode"
235 ; '(update-diff-colors))
245 ;(fringe-mode (quote (0 . 0)))
248 (custom-set-variables
249 ;; custom-set-variables was added by Custom.
250 ;; If you edit it by hand, you could mess it up, so be careful.
251 ;; Your init file should contain only one such instance.
252 ;; If there is more than one, they won't work right.
253 '(package-selected-packages
255 (helm yasnippet workgroups2 w3m use-package tangotango-theme tabbar smex session rich-minority relative-line-numbers recentf-ext projectile-speedbar pp-c-l powerline persp-projectile paradox page-break-lines org-cliplink org-caldav org-bullets multi-term monokai-theme molokai-theme moe-theme minibuffer-line markdown-mode magit linum-relative key-chord jekyll-modes irony iedit ido-vertical-mode ido-ubiquitous icicles hydra highlight-tail highlight-escape-sequences highlight-current-line helm-projectile helm-ls-svn helm-ls-git helm-gtags helm-ag google-c-style ggtags flyspell-lazy flymake-google-cpplint flymake-cursor flx-ido fiplr eyebrowse evil-leader evil-escape ecb dired+ diff-hl cyberpunk-theme company color-theme-sanityinc-tomorrow color-theme color-identifiers-mode auto-complete-c-headers ace-window ace-jump-mode))))
257 ;; custom-set-faces was added by Custom.
258 ;; If you edit it by hand, you could mess it up, so be careful.
259 ;; Your init file should contain only one such instance.
260 ;; If there is more than one, they won't work right.