aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
blob: 3a82daae6ea0eafeb68838ffe87da1b4f8c65d4a (plain) (blame)
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
;;; init.el --- Emacs Configuration entrypoint -*- lexical-binding: t; -*-
;;
;;; Commentary:
;; init.el serves as the entrypoint for this Emacs configuration.
;;
;; The majority of the configuration lives within the modules/
;; directory.  Each module is intended to be a self-contained unit for
;; some aspect of my usage of Emacs.  Each module name is prefixed
;; with et- to namespace them.  Furthermore, all public definitions
;; *within* a module are prefixed by the module name
;; e.g. et-vc-generate-remote-git-url.
;;
;; Because the configuration is generally in these module files, the
;; primary role of init.el is to bootstrap the loading of these
;; modules.
;;
;; Therefore, this entrypoint file:
;; * Sets up the Emacs load path to include the modules directory.
;; * Defines core variables and functions throughout the modules.
;; * Loads each module in the necessary order.
;;
;;; Code:
(add-to-list 'load-path '"~/.emacs.d/modules")

(require 'et-package)
(require 'et-appearance)
(require 'et-vc)
(require 'et-completion)
(require 'et-format)
(require 'et-lsp)

;; Misc. grab bag items that aren't formally organized yet.
(use-package which-key
  :config
  (which-key-mode 1))

(use-package surround
  :bind-keymap ("M-'" . surround-keymap))

(use-package treesit-auto
  :custom
  (treesit-auto-install 'prompt)
  :config
  (treesit-auto-add-to-auto-mode-alist 'all)
  (global-treesit-auto-mode))

(setq custom-file (expand-file-name "custom-vars.el" user-emacs-directory))
(when (file-exists-p custom-file)
    (load custom-file))

(setq messages-log-max t)

(provide 'init)
;;; init.el ends here