diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-04-02 19:02:19 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-04-02 19:02:19 -0400 |
| commit | fdcf582c498c89f3363bbb9ed1f89f9e3dde287c (patch) | |
| tree | c96db5dfa84ed487b23a921b75e22aa1dd5b53fc /.emacs.d/init.el | |
| parent | Add magit and fix typo in et-keys to C-g instead of M-g (diff) | |
| download | dotfiles-fdcf582c498c89f3363bbb9ed1f89f9e3dde287c.zip | |
Adjust emacs config
Diffstat (limited to '.emacs.d/init.el')
| -rw-r--r-- | .emacs.d/init.el | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1b2d2f6..3a82daa 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,24 +1,35 @@ -;; -*- lexical-binding: t; -*- +;;; 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") -;; Add configuration modules to load path -(add-to-list 'load-path '"~/.dotfiles/.emacs.d/modules") - -;; --------- Core Utilities --------------------- -(defun et-is-desktop-p () - (string-match-p "desktop" (system-name))) - -;; --------- Core Variables --------------------- -(defvar et-monospace-font "Hack Nerd Font Mono" - "The font used by default and for any monospaced font usage.") -(defvar et-monospace-font-size (if (et-is-desktop-p) 192 160)) - -;; --------- 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)) @@ -26,8 +37,18 @@ (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 |