1
0
Fork 0

refactor(emacs): organise into reasonable modules

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-03 17:15:25 -05:00
parent 51a7ff1b9c
commit e99a639325
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
10 changed files with 270 additions and 199 deletions

View file

@ -0,0 +1,33 @@
;;; priime-edit.el --- Edit configuration
;;; Commentary:
;; Provides configuration for edit-related packages, including
;; syntax-checking and formatting.
;;; Code:
(use-package meow :straight t
:init
(meow-global-mode)
(meow-setup-indicator))
(use-package flycheck :straight t
:custom
(flycheck-check-syntax-automatically '(save mode-enable))
:init
(add-hook 'after-init-hook 'global-flycheck-mode))
(use-package paredit :straight t
:bind (("M-<backspace>" . #'backward-kill-sexp)
("M-k" . #'kill-sexp))
:hook ((emacs-lisp-mode scheme-mode clojure-mode lisp-mode)
. paredit-mode))
(use-package undo-tree :straight t
:custom
(undo-tree-auto-save-history nil)
:config
(global-undo-tree-mode))
(use-package format-all :straight t
:bind ("C-c f" . format-all-region-or-buffer))
(use-package ws-butler :straight t
:hook (prog-mode . ws-butler-mode))
(provide 'priime-edit)
;;; priime-edit.el ends here