-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.el
175 lines (143 loc) · 5.36 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
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
;;; init.el --- Init file to bootstrap Orary!
;; Copyright (C) 2016 Ross Donaldson
;; Author: Ross Donaldson <gastove@gmail.com>
;; URL: https://github.com/Gastove/orary
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; Yep. We got code.
;;; Code:
;;-----------------------------Package Management-------------------------------
;; NOTE[Donaldson|2022-12-12] As of now, it looks like I get to convert to
;; straight.el. I don't actually want to do this, so that's fun, but it _does_
;; seem to be good stuff. Unfortunately, installing Helm from melpa is
;; exploding, so. Cool.
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'org)
(setq package-enable-at-startup nil)
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)
;; (require 'package)
;; (package-initialize)
;; (setq package-check-signature nil)
;; (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
;; (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
;; (add-to-list 'package-archives '("elpy" . "https://jorgenschaefer.github.io/packages/"))
(if (and (version< emacs-version "26.3") (>= libgnutls-version 30604))
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
;; We use use-package absolutely everywhere. Make sure it's there.
;; (unless (package-installed-p 'use-package)
;; (package-refresh-contents)
;; (package-install 'use-package))
;; Sometimes you want emacs to load faster. This is for those times.
;; (use-package benchmark-init
;; :ensure t
;; :config
;; ;; To disable collection of benchmark data after init is done.
;; (add-hook 'after-init-hook 'benchmark-init/deactivate))
(eval-when-compile
(require 'use-package))
(use-package diminish) ;; if you use :diminish
(require 'bind-key) ;; if you use any :bind variant
;; Package Loading and Configuration
;; (require 'use-package-ensure)
;; (setq use-package-always-ensure t)
;; New Core
(use-package dash ;; Modern FP, combiners
:straight t
:config
(dash-enable-font-lock))
(use-package s ;; String manipulation
:straight t
)
(use-package f ;; File manipulation
:straight t)
;; A few vars of utility
(defvar orary/orary-root-dir (file-name-directory
(or (buffer-file-name) (file-chase-links load-file-name))))
(defvar orary/user-home-dir (getenv "HOME"))
;; Stuff I wrote
(add-to-list 'load-path (f-expand "modules/" orary/orary-root-dir))
;; Stuff from other people not available on MELPA
(add-to-list 'load-path (f-expand "vendor/" orary/orary-root-dir))
;; Load this first in case things need executables from the path.
(use-package exec-path-from-shell
:ensure t)
(if (eq system-type 'darwin)
(require 'orary-osx)
(require 'orary-linux))
;;------------------------------Let's Load Orary--------------------------------
;; Core -- central behaviors and configuration
(require 'orary-core)
(require 'orary-ui)
(require 'orary-functions)
(require 'orary-popups)
(require 'orary-cli)
;; Editing - global configs for editing in src and txt
(require 'orary-editor)
(require 'orary-keymap)
(require 'orary-programming)
(require 'orary-text)
;; Magit -- pretty much it's own thing. Double Mega.
(require 'orary-magit)
;; Minor Modes -- teamwork makes the dream work (●♡∀♡)
(require 'orary-company)
(require 'orary-helm)
(require 'orary-projectile)
(require 'orary-emote)
(require 'orary-smartparens)
(require 'orary-lang-server)
(require 'orary-tree)
;; Talky -- communicate with others
(require 'orary-irc)
;; Languages
(require 'orary-clojure)
(require 'orary-elixir)
(require 'orary-emacs-lisp)
(require 'orary-fsharp)
(require 'orary-csharp)
(require 'orary-formats)
(require 'orary-golang)
(require 'orary-java)
(require 'orary-javascript)
(require 'orary-kotlin)
(require 'orary-lilypond)
(require 'orary-ocaml)
(require 'orary-org)
(require 'orary-purescript)
(require 'orary-python)
(require 'orary-rust)
(require 'orary-scala)
;; Possibly ESS is fucking with emacsclient and the server? Unclear. Investigate.
;; (require 'orary-stats)
(require 'orary-web)
(require 'orary-misc)
;; Weird
(require 'orary-org-blorg)
;; Reading
(require 'orary-rss)
;; Twerk
(require 'orary-work)
;; Last but not least, click on the server
(server-start)
(provide 'init)
;;; init.el ends here