-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
81 lines (70 loc) · 3.49 KB
/
init.el
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
;; ------------------------------------------------------------
;; Better dead than smeg.
;;
;; Taking some inspiration from bbatsov's prelude for structure
;; ------------------------------------------------------------
(defvar modules-dir (expand-file-name "modules" user-emacs-directory))
(defvar personal-dir (expand-file-name "personal" user-emacs-directory))
;;(toggle-debug-on-error)
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t
;; '("melpa" . "http://melpa.milkbox.net/packages/") t
)
(setq package-user-dir (concat user-emacs-directory "elpa"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t
use-package-verbose t)
(message "Loading modules in %s..." modules-dir)
(mapc 'load (directory-files modules-dir 't "^[^#]*el$"))
(when (file-exists-p personal-dir)
(message "Loading personal configuration files in %s..." personal-dir)
(mapc 'load (directory-files personal-dir 't "^[^#]*el$")))
;; Not ideal to place this here, but I have issues with company-mode
;; and cider initiating nicely together
(global-company-mode)
;; TODO Put this stuff somewhere else
;; (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.
;; '(cider-boot-parameters "-C cider dev")
;; '(cider-inject-dependencies-at-jack-in t)
;; '(custom-enabled-themes '(sanityinc-tomorrow-night))
;; '(custom-safe-themes
;; '("06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" default))
;; '(package-selected-packages
;; '(cider terraform-mode projectile exec-path-from-shell magit color-theme-sanityinc-tomorrow js2-mode web-mode restclient feature-mode elisp-slime-nav company markdown-mode list-register rainbow-delimiters smex idle-highlight-mode hl-sexp expand-region browse-kill-ring avy undo-tree noflet flx-ido better-defaults clj-refactor clojure-mode use-package queue peg))
;; '(safe-local-variable-values
;; '((projectile-project-type . boot-clj)
;; (cider-boot-parameters . "cider dev")
;; (eval add-hook 'clojure-mode-hook #'cider-mode)
;; (cider-boot-parameters . "dev"))))
;; (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.
;; )
;; (put 'upcase-region 'disabled nil)
(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.
'(custom-enabled-themes '(sanityinc-tomorrow-night))
'(custom-safe-themes
'("06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" default))
'(package-selected-packages
'(cider clojure-mode company markdown-mode rainbow-delimiters paredit smex multiple-cursors expand-region browse-kill-ring avy undo-tree use-package)))
(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.
)