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 (require 'init-projectile)
51 (use-package ido-vertical-mode
58 (hydra-add-font-lock))
62 (use-package ace-jump-mode
63 :commands ace-jump-mode
65 (bind-key "C-." 'ace-jump-mode))
67 (use-package sublime-themes
70 (load-theme 'spolsky t)
85 ;(add-to-list 'load-path "~/.emacs.d/config")
87 ;; remove custom setting out of init.el
88 ;; http://emacsblog.org/2008/12/06/quick-tip-detaching-the-custom-file/
89 ;(setq custom-file "~/.emacs.d/custom.el")
90 ;(load custom-file 'noerror)
91 ;(require 'my-packages)
97 ;(require 'init-color-theme)
98 ;(require 'init-color-theme-2)
100 ;(require 'init-magit)
101 ;(require 'init-evil)
102 ;(require 'init-project)
103 ;(require 'init-ggtags)
105 ;(require 'init-projectile)
107 ;;;; conflict with C-c . in org-mode, disable it temporarily
108 ;;;;(require 'init-c-cpp)
109 ;(require 'init-key-binding)
110 ;(require 'init-winner)
111 ;(require 'init-minibuffer)
112 ;(require 'init-eshell)
114 ;; http://stackoverflow.com/questions/11484225/fix-an-auto-complete-mode-and-linum-mode-annoyance
115 ;;;(ac-linum-workaround)
118 ;(require 'init-mode-line)
119 ;(require 'init-workgroup2)
120 ;(require 'init-perl)
122 ;(add-to-list 'load-path "~/.emacs.d/Emacs-PDE-0.2.16/lisp/")
125 ;(require 'init-linum)
127 ;(require 'auto-complete)
128 ;(require 'auto-complete-config)
134 ;; page break configuration
136 ;(pretty-control-l-mode 1)
138 ;; persist command history of helm
140 ;(add-hook 'after-init-hook 'session-initialize)
143 ;(require 'use-package)
145 ;; persist command history of helm
146 ;(use-package savehist
147 ; :init (savehist-mode)
149 ; (setq history-length 1000
150 ; history-delete-duplicates t
151 ; savehist-additional-variables '(extended-command-history)))
154 ;; (setq history-length 1000
155 ;; history-delete-duplicates t
156 ;; savehist-additional-variables '(extended-command-history))
158 ; (setq split-height-threshold 0)
164 ;;;(require 'helm-gtags)
165 ;;;;(require 'setup-helm-gtags)
166 ;;;;(helm-gtags-mode 1)
167 ;;;;;; Enable helm-gtags-mode
168 ;;;(add-hook 'c-mode-hook 'helm-gtags-mode)
169 ;;;(add-hook 'c++-mode-hook 'helm-gtags-mode)
170 ;;;(add-hook 'asm-mode-hook 'helm-gtags-mode)
173 ;;;(custom-set-variables
174 ;;; '(helm-gtags-path-style 'relative)
175 ;;; '(helm-gtags-ignore-case t)
176 ;;; '(helm-gtags-auto-update t))
179 ;;;(eval-after-load "helm-gtags"
181 ;;; (define-key helm-gtags-mode-map (kbd "M-t") 'helm-gtags-find-tag)
182 ;;; (define-key helm-gtags-mode-map (kbd "M-r") 'helm-gtags-find-rtag)
183 ;;; (define-key helm-gtags-mode-map (kbd "M-s") 'helm-gtags-find-symbol)
184 ;;; (define-key helm-gtags-mode-map (kbd "M-g M-p") 'helm-gtags-parse-file)
185 ;;; (define-key helm-gtags-mode-map (kbd "C-c <") 'helm-gtags-previous-history)
186 ;;; (define-key helm-gtags-mode-map (kbd "C-c >") 'helm-gtags-next-history)
187 ;;; (define-key helm-gtags-mode-map (kbd "M-,") 'helm-gtags-pop-stack)))
194 ;;(require 'init-org)
195 ;(setq help-window-select t)
199 ;(require 'init-keychord)
201 ;(setq hydra-examples-verbatim t)
202 ;(require 'init-hydra)
205 ;(require 'ace-window)
206 ;(global-set-key (kbd "M-p") 'ace-window)
209 ;(require 'init-multi-term)
210 ;(require 'init-projectile)
212 ;(require 'page-break-lines)
213 ;(turn-on-page-break-lines-mode)
214 ;(global-page-break-lines-mode 1)
216 ;(setq projectile-completion-system 'helm)
217 ;(helm-projectile-on)
220 ;; show projectile name in mode-line
223 ;(if (locate-library "ediff")
225 ; (autoload 'ediff-files "ediff")
226 ; (autoload 'ediff-buffers "ediff")
228 ; (eval-after-load "ediff" '(progn
229 ; (message "doing ediff customisation")
230 ; (setq diff-switches "-u"
231 ; ediff-custom-diff-options "-U3"
232 ; ediff-split-window-function 'split-window-horizontally
233 ; ediff-window-setup-function 'ediff-setu;p-windows-plain)
235 ; (add-hook 'ediff-startup-hook 'ediff-toggle-w;ide-display)
236 ; (add-hook 'ediff-cleanup-hook 'ediff-toggle-w;ide-display)
237 ; (add-hook 'ediff-suspend-hook 'ediff-toggle-wide-display)))))
241 ;(defun update-diff-colors ()
242 ; "update the colors for diff faces"
243 ; (set-face-attribute 'diff-added nil
244 ; :foreground "white" :background "blue")
245 ; (set-face-attribute 'diff-removed nil
246 ; :foreground "white" :background "red3")
247 ; (set-face-attribute 'diff-changed nil
248 ; :foreground "white" :background "purple"))
249 ;(eval-after-load "diff-mode"
250 ; '(update-diff-colors))
260 ;(fringe-mode (quote (0 . 0)))
263 (custom-set-variables
264 ;; custom-set-variables was added by Custom.
265 ;; If you edit it by hand, you could mess it up, so be careful.
266 ;; Your init file should contain only one such instance.
267 ;; If there is more than one, they won't work right.
268 '(package-selected-packages
270 (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))))
272 ;; custom-set-faces was added by Custom.
273 ;; If you edit it by hand, you could mess it up, so be careful.
274 ;; Your init file should contain only one such instance.
275 ;; If there is more than one, they won't work right.