1
0

emacs: switch to ethan-wspace

This commit is contained in:
2025-08-20 05:12:26 -07:00
parent 2cbaea2554
commit cb5ddb15a6
3 changed files with 12 additions and 8 deletions

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1750506804,
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=",
"lastModified": 1755615617,
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4206c4cb56751df534751b058295ea61357bbbaa",
"rev": "20075955deac2583bb12f07151c2df830ef346b4",
"type": "github"
},
"original": {

View File

@@ -84,7 +84,7 @@
# === CODE FORMATTING AND CLEANUP ===
web-beautify # Format and beautify web code (HTML/CSS/JS)
whitespace-cleanup-mode # Automatically clean up whitespace on save
ethan-wspace # Automatically clean up whitespace on save
# === PARENTHESES AND STRUCTURE EDITING ===
paredit # Balanced parentheses editing for Lisp-like languages

View File

@@ -387,11 +387,15 @@ frame if FRAME is nil, and to 1 if AMT is nil."
(yas-global-mode 1))
;; Clean up whitespace
(use-package whitespace-cleanup-mode
:diminish
(use-package ethan-wspace
:ensure t
:diminish ethan-wspace-mode
:config
(setq whitespace-cleanup-mode-only-if-initially-clean nil)
(global-whitespace-cleanup-mode))
;; Enable globally
(global-ethan-wspace-mode 1)
;; Customize what to clean
(setq mode-require-final-newline nil)) ; ethan-wspace handles this
;; Rainbow delimiters
(use-package rainbow-delimiters)