-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
134 lines (116 loc) · 4.16 KB
/
init.el
File metadata and controls
134 lines (116 loc) · 4.16 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
;; setup marmalade package repo
(require 'package)
(setq package-archives
'(("MELPA" . "https://melpa.org/packages/")
("MELPA Stable" . "https://stable.melpa.org/packages/")
("GNU ELPA" . "https://elpa.gnu.org/packages/")
("NonGNU ELPA" . "https://elpa.nongnu.org/nongnu/"))
package-archive-priorities
'(("MELPA" . 8)
("MELPA Stable" . 6)
("GNU ELPA" . 4)
("NonGNU ELPA" . 10)))
(package-initialize)
(unless package-archive-contents (package-refresh-contents))
(defvar my-packages
'(
compat
ein
amx
smartparens
flx flx-ido projectile
smex magit git-timemachine yasnippet yagist
multi-vterm ;; replacement for multi-term
exec-path-from-shell
dash-at-point
expand-region
ivy
counsel-jq
git-link
browse-kill-ring
browse-at-remote
persistent-scratch
zenburn-theme
alchemist
go-mode
go-add-tags
go-autocomplete
go-dlv
go-guru
go-mode
go-playground
go-eldoc
go-rename
dap-mode
clojure-mode
coffee-mode
erlang
feature-mode
js2-mode
less-css-mode
markdown-mode
puppet-mode
rspec-mode
sass-mode
slim-mode
yaml-mode
rhtml-mode
web-mode
scala-mode
enh-ruby-mode inf-ruby
ido-completing-read+
find-file-in-project
sx
launchctl
dumb-jump
flycheck ;; for go-mod-mode
flymake
flymake-go
loccur
x509-mode ;; with overriden viewcert in eric/x509-mode.el
;; which-key
)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(progn
;; Turn off mouse interface early in startup to avoid momentary display
(dolist (mode '(menu-bar-mode tool-bar-mode scroll-bar-mode))
(when (fboundp mode) (funcall mode -1)))
;; You can keep system- or user-specific customizations here
(setq esk-system-config (concat user-emacs-directory system-name ".el")
esk-user-config (concat user-emacs-directory user-login-name ".el")
esk-user-dir (concat user-emacs-directory user-login-name))
(require 'uniquify)
(defun esk-eval-after-init (form)
"Add `(lambda () FORM)' to `after-init-hook'.
If Emacs has already finished initialization, also eval FORM immediately."
(let ((func (list 'lambda nil form)))
(add-hook 'after-init-hook func)
(when after-init-time
(eval form))))
(esk-eval-after-init
'(progn
(when (file-exists-p esk-system-config) (load esk-system-config))
(when (file-exists-p esk-user-config) (load esk-user-config))
(when (file-exists-p esk-user-dir)
(mapc 'load (directory-files esk-user-dir t "^[^#].*el$"))))))
(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.
'(package-selected-packages
'(monet claude-code eat inheritenv agent-shell acp async1 use-package mermaid-mode request ein git-link zenburn-theme yasnippet yaml-mode yagist x509-mode web-mode sx smex smartparens slim-mode scala-mode sass-mode rspec-mode rhtml-mode puppet-mode projectile persistent-scratch paredit multi-vterm magit loccur launchctl js2-mode inf-ruby ido-completing-read+ go-rename go-playground go-guru go-eldoc go-dlv go-autocomplete go-add-tags git-timemachine flymake-go flycheck flx-ido find-file-in-project feature-mode expand-region exec-path-from-shell erlang enh-ruby-mode dumb-jump dash-at-point dap-mode counsel-jq coffee-mode clojure-mode browse-kill-ring browse-at-remote amx alchemist))
'(package-vc-selected-packages
'((monet :url "https://github.com/stevemolitor/monet")
(claude-code :url "https://github.com/stevemolitor/claude-code.el")
(agent-shell :url "https://github.com/xenodium/agent-shell")
(acp :url "https://github.com/xenodium/acp.el"))))
(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.
)