Simplify and add emacs config

This commit is contained in:
2025-09-26 17:51:52 -04:00
parent 4f38297378
commit 93aecdd5cb
13 changed files with 2334 additions and 0 deletions

View File

@ -0,0 +1,13 @@
; Hooks to enable custom modes
(add-to-list 'auto-mode-alist '("\\.cu\\'" . c++-mode))
; Settings for Text mode
(add-hook 'text-mode-hook 'auto-fill-mode)
(add-hook 'text-mode-hook 'flyspell-mode)
; Settings for C++ mode (and I guess C as well)
(add-hook 'c-mode-common-hook (lambda () (load "~/.emacs.d/modes/c-mode.el")))
(add-hook 'c-mode-common-hook 'hs-minor-mode)
;; Terraform mode hooks
(add-hook 'terraform-mode-hook 'terraform-format-on-save-mode)