blob: bc52347f00e841684e15725fd91af2d67486aac9 (
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
55
56
57
58
59
60
61
62
63
|
;;; 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 and definitions
;; within a module is prefixed with et- to namespace them.
;;
;; 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.
;; * Loads each module in the necessary order.
;;
;;; Code:
(add-to-list 'load-path "~/.emacs.d/vendor")
(require 'find-file-in-project)
(setq ffip-use-rust-fd t)
(global-set-key (kbd "C-c p f") 'find-file-in-project)
(global-set-key (kbd "C-c p s") 'find-file-in-project-by-selected)
(add-to-list 'load-path "~/.emacs.d/modules")
(require 'et-package)
(require 'et-appearance)
(require 'et-vc)
(require 'et-completion)
(require 'et-navigation)
(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))
(use-package slime
:init
(setq inferior-lisp-program "sbcl")
:config
(slime-setup '(slime-fancy slime-quicklisp slime-asdf)))
(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
|