-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.el
More file actions
209 lines (170 loc) · 6.78 KB
/
Copy pathinit.el
File metadata and controls
209 lines (170 loc) · 6.78 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
;;; package ---- my emacs config
;;; Commentary:
;;; No comment :)
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;;; Code:
(package-initialize)
(setq inhibit-startup-screen t)
(setq init-home-dir (file-name-directory user-init-file))
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")))
(eval-when-compile
;; Following line is not needed if use-package.el is in ~/.emacs.d
(require 'use-package))
(add-to-list 'load-path
(expand-file-name "elisp" init-home-dir))
(setq use-package-always-ensure t)
(use-package projectile
:init
(setq projectile-mode-line '(:eval (format " [%s]" (projectile-project-name))))
(setq projectile-globally-ignored-file-suffixes '("#~"))
(setq projectile-keymap-prefix (kbd "C-c p"))
:config
(projectile-global-mode))
(use-package uniquify
:ensure nil
:init
(setq uniquify-buffer-name-style 'reverse))
(use-package flymake-jslint)
(use-package flymake-cursor)
(use-package magit)
(use-package smart-tabs-mode)
(use-package js2-mode)
(use-package git-gutter-fringe)
(use-package fill-column-indicator
:init
(setq fci-rule-color "grey30")
(setq fci-rule-column 80)
(setq fci-handle-truncate-lines nil))
(use-package markdown-mode)
(use-package atom-dark-theme)
(use-package editorconfig)
(use-package diminish)
(use-package restclient)
(use-package window-purpose)
(use-package flycheck-pos-tip)
(use-package slipset-funs
:ensure nil)
(use-package whitespace
:init
(setq whitespace-style '(face tabs empty trailing))
:config
(global-whitespace-mode 1))
(use-package paredit)
(use-package paredit-menu)
(use-package slipset-git
:ensure nil)
(use-package slipset-clojure
:ensure nil)
(use-package slipset-javascript
:ensure nil)
(use-package slipset-osx
:ensure nil)
(use-package slipset-appearance
:ensure nil)
(use-package fill-column-indicator
:ensure nil
:config
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
(global-fci-mode 1))
(use-package slipset-display
:ensure nil)
(use-package slipset-purpose
:ensure nil)
(use-package eshell
:init
(setq eshell-prompt-function (lambda nil
(concat
(propertize (file-name-nondirectory (eshell/pwd)) 'face `(:foreground "limegreen"))
(propertize " $ " 'face `(:foreground "limegreen")))))
(setq eshell-highlight-prompt nil)
(setq eshell-visual-commands
'("less" "tmux" "htop" "top" "bash" "zsh" "fish"))
(setq eshell-visual-subcommands
'(("git" "log" "l" "diff" "show"))))
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(line-number-mode t)
(display-time-mode t)
(setq display-time-24hr-format t)
(setq-default cursor-type 'bar)
(global-linum-mode)
(setq linum-format "%4d\u2502")
(put 'downcase-region 'disabled nil)
(setq split-height-threshold nil)
(setq ediff-split-window-function 'split-window-horizontally)
(setq-default fringes-outside-margins t)
(setq default-directory "~/")
;;(add-to-list 'ac-dictionary-directories (concat init-home-dir "ac-dict"))
;;(ac-config-default)
;; (setq-default ac-sources (add-to-list 'ac-sources 'ac-source-dictionary))
;; (global-auto-complete-mode t)
;; (setq ac-auto-start 2)
;; (setq ac-ignore-case nil)
(define-key global-map (kbd "RET") 'newline-and-indent)
(defalias 'yes-or-no-p 'y-or-n-p)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-names-vector
["black" "red3" "green3" "yellow3" "SkyBlue1" "magenta3" "cyan3" "gray90"])
'(custom-safe-themes
(quote
("a1289424bbc0e9f9877aa2c9a03c7dfd2835ea51d8781a0bf9e2415101f70a7e" "8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default)))
'(httpd-port 8848)
'(inf-clojure-lein-cmd "planck --theme dark")
'(inf-clojure-program "planck --theme dark")
'(markdown-fontify-code-blocks-natively t)
'(package-selected-packages
(quote
(racket-mode flycheck-pos-tip flycheck-clojure use-package company-restclient restclient window-purpose slack vue-html-mode vue-mode htmlize twittering-mode solarized-theme smart-tabs-mode simple-httpd scala-mode2 purty-mode projectile paredit-menu magit kite js2-mode jabber inf-clojure git-gutter-fringe git flymake-jslint flymake-cursor ensime editorconfig diminish clojure-snippets clojure-mode-extra-font-locking clj-refactor auto-complete atom-dark-theme)))
'(safe-local-variable-values
(quote
((eval progn
(setenv "RSA_PRIVATE_KEY_PATH" "/Users/erik/Documents/ardoq.com/ardoq-api/dev-resources/rsakey/key.pem")
(setenv "RSA_PUBLIC_KEY_PATH" "/Users/erik/Documents/ardoq.com/ardoq-api/dev-resources/rsakey/key.pub")
(setenv "MANDRILL_API_KEY" "hlICKC9alBnarSoUzGMNiA")
(setenv "MAIL_PROVIDER" "mandrill")
(setenv "CHARGEBEE_SITE" "ardoq-test")
(setenv "CHARGEBEE_API_KEY" "test_07MgrcuH98zPmBTkJTNWjdMZZGOZahccuZ"))
(js2-strict-missing-semi-warning nil)
(cider-cljs-lein-repl . "(start-cljs)")
(checkdoc-package-keywords-flag)
(bug-reference-bug-regexp . "#\\(?2:[[:digit:]]+\\)")
(whitespace-cleanup-mode . t)))))
(global-auto-revert-mode 1)
;; (require 'jabber)
(setq edconf-exec-path slipset-edconf-exec-path)
(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(breakpoint-enabled ((t (:foreground "red1" :weight normal))))
'(buffer-menu-buffer ((t (:weight normal))))
'(custom-variable-tag ((t (:foreground "light blue" :weight normal))))
'(font-lock-warning-face ((t (:foreground "#ff982d" :weight normal))))
'(magit-diff-file-heading ((t (:weight normal))))
'(magit-section-heading ((t (:foreground "LightGoldenrod2" :weight normal))))
'(markdown-code-face ((t (:inherit monoid))))
'(mode-line ((t (:background "grey12" :foreground "#96CBFE"))))
'(mode-line-buffer-id ((t (:weight normal :foreground "red")))))
(put 'narrow-to-region 'disabled nil)
(put 'set-goal-column 'disabled nil)
;; (add-to-list 'company-backends 'company-restclient)
(defun add-auto-mode (mode &rest patterns)
"Associate every pattern in `PATTERNS' with `MODE'."
(dolist (pattern patterns)
(add-to-list 'auto-mode-alist (cons pattern mode))))
(defun prevent-whitespace-mode-for-magit ()
(not (derived-mode-p 'magit-mode)))
(add-function :before-while whitespace-enable-predicate 'prevent-whitespace-mode-for-magit)
(provide 'init)
;;; init.el ends here