-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
74 lines (59 loc) · 2.02 KB
/
.emacs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(unless (require 'ack-menu nil 'noerror)
(package-install 'ack-menu))
(unless (require 'git-gutter-fringe nil 'noerror)
(package-install 'git-gutter-fringe))
(unless (require 'el-get nil 'noerror)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.github.com/dimitri/el-get/master/el-get-install.el")
(goto-char (point-max))
(eval-print-last-sexp)))
(setq my-el-get-packages
(append
'(undo-tree evil lusty-explorer git-blame google-c-style go-mode magit multi-term lua-mode)
(mapcar 'el-get-source-name el-get-sources)))
(el-get 'sync my-el-get-packages)
(require 'evil)
(push 'mag-menu-mode evil-emacs-state-modes)
(evil-mode 1)
(setq evil-default-cursor t)
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq inhibit-startup-screen 1)
(column-number-mode 1)
(setq-default indent-tabs-mode nil)
(require 'whitespace)
(global-whitespace-mode 1)
(setq whitespace-style '(trailing space tabs tab-mark face))
(windmove-default-keybindings)
(global-rainbow-delimiters-mode 1)
(add-hook 'c-mode-common-hook 'google-set-c-style)
(add-hook 'c-mode-common-hook 'google-make-newline-indent)
(add-hook 'java-mode-hook (lambda ()
(setq c-basic-offset 4
tab-width 4
indent-tabs-mode nil)))
(setq auto-mode-alist (cons '("\.cl$" . c-mode) auto-mode-alist))
(global-linum-mode 1)
(show-paren-mode 1)
(require 'tramp)
(setq tramp-default-method "scp")
(require 'multi-term)
(require 'git-gutter)
(setq git-gutter-fr:side 'right-fringe)
(global-git-gutter-mode 1)
(setq git-gutter:always-show-gutter 1)
(load-theme 'obsidian t)
(if (daemonp)
(add-hook 'after-make-frame-functions
(lambda (frame)
(load-theme 'obsidian t)))
(load-theme 'obsidian t)
)
(setq make-backup-files nil)