-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
103 lines (83 loc) · 3.19 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
;; parse init.org with org-mode
;; (require 'org)
;; (org-babel-load-file
;; (expand-file-name "init.org"
;; user-emacs-directory))
;;; parsed init.org with bespoke function from http://endlessparentheses.com/init-org-Without-org-mode.html
(defvar endless/init.org-message-depth 3
"What depth of init.org headers to message at startup.")
(with-temp-buffer
(insert-file "~/.emacs.d/init.org")
(goto-char (point-min))
(while (not (eobp))
(forward-line 1)
(cond
;; Report Headers
((looking-at
(format "\\* +.*$"
endless/init.org-message-depth))
(message "%s" (match-string 0)))
;; Evaluate Code Blocks
((looking-at "^#\\+BEGIN_SRC +emacs-lisp *$")
(let ((l (match-end 0)))
(search-forward "\n#+END_SRC")
(eval-region l (match-beginning 0))))
;; Finish on the next level-1 header
((looking-at "^\\* ")
(goto-char (point-max))))))
;; (when (string= system-type "darwin")
;; (setq dired-use-ls-dired nil))
;; (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
;; (setq load-prefer-newer t)
;; ;; Potentially makes things snappier by doing garbage collection out of frame.
;; (add-hook 'focus-out-hook #'garbage-collect)
;; ;;;;;;;;;
;; ;; Initialize config
;; ;;;;;;;;;
;; (setq ring-bell-function 'ignore)
;; (setq make-backup-files nil)
;; (setq custom-file "~/.emacs.d/custom.el")
;; (load custom-file 'noerror)
;; (defun reload-config ()
;; "Reload the config for emacs."
;; (interactive)
;; (load-file "~/.emacs"))
;; ;;;;;;
;; ;; Core
;; ;;;;;;
;; (require 'init-package)
;; (require 'init-funcs)
;; (require 'init-keybinds)
;; (require 'init-visuals)
;; (require 'init-hydra)
;; (require 'init-persp)
;; (require 'init-ivy)
;; (require 'init-editor)
;; (require 'init-project)
;; ;;;;;;;;
;; ;; Mode configs
;; ;;;;;;;;
;; (require 'init-org)
;; (require 'init-tex)
;; (require 'init-julia)
;; (require 'init-python)
;; ;;;;;;;;
;; ;; Extras
;; ;;;;;;;;
;; (require 'init-org-notes)
;; ;; (require 'init-org-papers)
;; ;; (require 'init-org-daily)
;; ;; (require 'init-brain)
(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
'(org org-roam zotxt yasnippet-snippets yaml-mode writeroom-mode which-key unfill undo-tree spaceline request-deferred refine rainbow-delimiters quelpa-use-package poly-markdown pipenv persp-mode pdf-tools ox-hugo org-roam-bibtex org-ref org-journal org-inline-pdf org-fragtog org-bullets neotree multiple-cursors monokai-theme magit lsp-ui lsp-julia latex-extra jupyter ivy-bibtex hl-todo helm-lsp god-mode general fullframe eyebrowse elpy eglot-jl dimmer diminish counsel-projectile company-quickhelp company-org-roam company-auctex company-anaconda biblio auto-compile auctex-latexmk)))
(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.
)