1 ;;;(if (eq system-type 'darwin)
3 ;;;) (concat (getenv "path") ":/usr/local/bin:~/bin/")
7 (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
8 (setq exec-path (append exec-path '("/usr/local/bin")))
10 (setq debug-on-error t)
15 (add-to-list 'default-frame-alist '(width . 120))
16 (add-to-list 'default-frame-alist '(height . 40))
17 ;(add-to-list 'default-frame-alist '(font . "Source Code Pro for Powerline-12:weight:light" ))
18 (add-to-list 'default-frame-alist '(font . "Source Code Pro for Powerline-12" ))
21 (put 'set-goal-column 'disabled nil)
22 (setq vc-follow-symlinks t)
24 (setq ring-bell-function 'ignore)
25 (setq resize-mini-windows t)
28 (add-to-list 'auto-mode-alist '("emacs\\'" . emacs-lisp-mode))
33 ;;; Set symbol for the border
34 (set-display-table-slot standard-display-table
38 (set-face-attribute 'vertical-border nil :foreground "gray")
41 (add-to-list 'load-path "~/.emacs.d/config")
42 (require 'my-packages)
44 ;; elscreen should be placed begin of https://github.com/knu/elscreen/issues/6
46 (require 'init-elscreen)
47 (require 'init-color-theme)
50 ;---------------------------------------------------------------------------------------
53 (require 'ido-vertical-mode)
59 (setq ido-use-faces nil)
61 (setq org-completion-use-ido t)
62 (setq magit-completing-read-function 'magit-ido-completing-read)
64 (require 'ido-ubiquitous)
65 (ido-ubiquitous-mode 1)
69 (global-set-key (kbd "M-x") 'smex)
70 (global-set-key (kbd "M-X") 'smex-major-mode-commands)
72 ;;---------------------------------------------------------------------------------------
76 (setq magit-last-seen-setup-instructions "1.4.0")
77 (global-set-key (kbd "C-x g") 'magit-status)
78 ;(setq magit-auto-revert-mode nil)
85 ;;---------------------------------------------------------------------------------------
88 (setq fiplr-root-markers '(".git" ".svn" "*.DS_Store"))
89 (setq fiplr-ignored-globs '((directories (".git" ".svn"))
90 (files ("*.jpg" "*.png" "*.zip" "*~" "*.o" ".obj" "*.swp" "*.hg" ".pyc" ".*" ))))
92 (global-set-key (kbd "C-x f") 'fiplr-find-file)
94 ;;---------------------------------------------------------------------------------------
97 (global-set-key (kbd "C-x C-l") 'windmove-right)
98 (global-set-key (kbd "C-x C-h") 'windmove-left)
99 (global-set-key (kbd "C-x C-k") 'windmove-up)
100 (global-set-key (kbd "C-x C-j") 'windmove-down)
102 ;;---------------------------------------------------------------------------------------
105 ;(require 'sr-speedbar)
106 ;(setq speedbar-use-images nil)
107 ;(setq speedbar-show-unknown-files t)
110 ;(toggle-frame-fullscreen)
113 (require 'projectile)
114 (projectile-global-mode)
115 (setq projectile-enable-caching t)
116 (require 'projectile-speedbar)
121 ;(setq ecb-layout-name "leftright3")
124 ;(setq mac-command-modifier 'super) ; make cmd key do Meta
125 (global-set-key (kbd "<s-return>") 'toggle-frame-fullscreen)
130 (global-set-key (kbd "M-g M-v") 'split-window-right)
131 (global-set-key (kbd "M-g M-s") 'split-window-below)
132 (global-set-key (kbd "M-g M-o") 'delete-other-windows)
134 (global-set-key (kbd "M-g M-w") 'other-window)
136 ;; gnu global support
137 ;(require 'semantic/db)
138 ;(global-semanticdb-minor-mode 1)
140 (require 'init-ggtags)
142 (global-unset-key "\C-o")
143 (global-set-key (kbd "C-o C-f") 'ido-find-file)
144 (global-set-key (kbd "C-o C-b") 'ido-switch-buffer)
146 (global-set-key (kbd "C-o g") 'ggtags-find-file)
147 (global-set-key (kbd "C-o t") 'ggtags-find-tag-dwim)
149 (global-set-key (kbd "M-g M-g") 'magit-status)
152 (setq scroll-margin 5)
153 (setq scroll-conservatively 10000)
157 (require 'init-c-cpp)