-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.el
126 lines (113 loc) · 5.04 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
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
;; === SETUP ===
(load "~/.emacs.d/straight/bootstrap")
(straight-use-package '(org :type built-in))
;; === Add Packages ===
(load "~/.emacs.d/custom/package-manager/package-manager")
(ensure-packages-are-installed)
;; === Compile Scripts ===
(defun check-for-compiled-file (path)
"Check to see if a compiled file exists at PATH."
(file-exists-p (concat path ".elc")))
(defun compile-if-no-compiled-file (path)
"Check if a compiled file exists at PATH and create one if not or it is old."
(if (check-for-compiled-file path)
(if (file-newer-than-file-p (concat path ".el") (concat path ".elc"))
(byte-compile-file (concat path ".el")))
(byte-compile-file (concat path ".el"))))
(defun ensure-scripts-are-compiled()
"Ensures that all scripts are compiled."
(mapc 'compile-if-no-compiled-file (list
"~/.emacs.d/custom/package-manager/package-manager"
"~/.emacs.d/custom/plugins/projectile"
"~/.emacs.d/custom/plugins/ivy_settings"
"~/.emacs.d/custom/appearance/facelift"
"~/.emacs.d/custom/plugins/smartparens"
"~/.emacs.d/custom/plugins/whitespace"
"~/.emacs.d/custom/plugins/mermaid"
"~/.emacs.d/custom/organization/backupfiles"
;; "~/.emacs.d/custom/organization/other-gtd"
"~/.emacs.d/custom/organization/jira"
"~/.emacs.d/custom/organization/git"
"~/.emacs.d/custom/organization/toc"
"~/.emacs.d/custom/keyboard/shortcuts"
;;"~/.emacs.d/ignore/dnd-mode/dnd-mode"
"~/.emacs.d/custom/plugins/dnd"
"~/.emacs.d/custom/organization/ox-dnd"
"~/.emacs.d/custom/mine/misc"
"~/.emacs.d/custom/settings"
"~/.emacs.d/custom/functions"
"~/.emacs.d/custom/languages/english"
"~/.emacs.d/custom/plugins/writegood-mode"
;;"~/.emacs.d/custom/plugins/slack"
"~/.emacs.d/custom/plugins/yasnippet"
"~/.emacs.d/custom/organization/ox-reveal"
;; === Programming Languages ===
"~/.emacs.d/custom/languages/lsp"
"~/.emacs.d/custom/languages/dotnet"
"~/.emacs.d/custom/languages/dotnet-dap"
"~/.emacs.d/custom/languages/sql"
"~/.emacs.d/custom/languages/java"
"~/.emacs.d/custom/languages/web"
"~/.emacs.d/custom/languages/angular"
"~/.emacs.d/custom/languages/react"
"~/.emacs.d/custom/languages/typescript"
"~/.emacs.d/custom/languages/terraform"
"~/.emacs.d/custom/languages/postgres"
"~/.emacs.d/custom/languages/python"
"~/.emacs.d/custom/languages/yaml"
"~/.emacs.d/custom/languages/org"
;; === Org Babel ===
"~/.emacs.d/custom/organization/org-babel/ob-csharp"
"~/.emacs.d/custom/organization/org-babel/ob-powershell"
"~/.emacs.d/custom/organization/org-babel/org-babel-settings"
"~/.emacs.d/custom/organization/plantuml-helpers")))
(ensure-scripts-are-compiled)
;; === Custom Scripts ===
(load "~/.emacs.d/custom/organization/backupfiles")
;;(load "~/.emacs.d/custom/organization/other-gtd")
(load "~/.emacs.d/custom/keyboard/shortcuts")
(load "~/.emacs.d/custom/functions")
(load "~/.emacs.d/custom/settings")
(load "~/.emacs.d/ignore/dnd-mode/dnd-mode")
(load "~/.emacs.d/custom/plugins/dnd")
(load "~/.emacs.d/custom/mine/misc")
;; === Navigation/Searching ===
(load "~/.emacs.d/custom/plugins/projectile")
(load "~/.emacs.d/custom/plugins/dired+")
(load "~/.emacs.d/custom/plugins/ivy_settings")
;; === Appearance ===
(load "~/.emacs.d/custom/appearance/facelift")
;; === Utility ===
(load "~/.emacs.d/custom/plugins/smartparens")
(load "~/.emacs.d/custom/plugins/whitespace")
;;(load "~/.emacs.d/custom/plugins/slack")
(load "~/.emacs.d/custom/plugins/yasnippet")
(load "~/.emacs.d/custom/plugins/mermaid")
(load "~/.emacs.d/custom/organization/jira")
(load "~/.emacs.d/custom/organization/git")
(load "~/.emacs.d/custom/organization/toc")
;; === Org Babel ===
(load "~/.emacs.d/custom/organization/org-babel/ob-csharp")
(load "~/.emacs.d/custom/organization/org-babel/ob-powershell")
(load "~/.emacs.d/custom/organization/org-babel/org-babel-settings")
;; === Programming ===
(load "~/.emacs.d/custom/languages/lsp")
;; === Writing ===
(load "~/.emacs.d/custom/languages/english")
(load "~/.emacs.d/custom/plugins/writegood-mode")
(load "~/.emacs.d/custom/organization/ox-reveal")
(load "~/.emacs.d/custom/organization/ox-dnd")
(load "~/.emacs.d/custom/languages/org")
;; === Tools ===
(load "~/.emacs.d/custom/organization/plantuml-helpers")
;; === Things Set Via Customize ===
;; === Move To Files and Delete ===
(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
'(fsharp-mode latex-preview-pane lsp-sh 0blayout flycheck-plantuml plantuml-mode ox-reveal htmlize flyspell-correct-ivy flyspell-correct nimbus-theme org-d20 multiple-cursors groovy-mode prettier-js add-node-modules-path web-mode tide sly slime-company key-chord py-autopep8 material-theme ein elpy omnisharp magit smartparens yasnippet-snippets yasnippet highlight-parentheses auto-complete projectile better-defaults neotree company counsel ivy use-package)))
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)