Compare commits
3 Commits
master
...
47026c59e7
| Author | SHA1 | Date | |
|---|---|---|---|
| 47026c59e7 | |||
| 0a34aec505 | |||
| f4a24ba664 |
6
flake.lock
generated
6
flake.lock
generated
@@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750506804,
|
"lastModified": 1755615617,
|
||||||
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=",
|
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4206c4cb56751df534751b058295ea61357bbbaa",
|
"rev": "20075955deac2583bb12f07151c2df830ef346b4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
# === CODE FORMATTING AND CLEANUP ===
|
# === CODE FORMATTING AND CLEANUP ===
|
||||||
web-beautify # Format and beautify web code (HTML/CSS/JS)
|
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 ===
|
# === PARENTHESES AND STRUCTURE EDITING ===
|
||||||
paredit # Balanced parentheses editing for Lisp-like languages
|
paredit # Balanced parentheses editing for Lisp-like languages
|
||||||
|
|||||||
@@ -15,6 +15,14 @@
|
|||||||
;; Disable annoying bell
|
;; Disable annoying bell
|
||||||
(setq ring-bell-function 'ignore)
|
(setq ring-bell-function 'ignore)
|
||||||
|
|
||||||
|
;; Skip package.el entirely when using Nix
|
||||||
|
(setq package-enable-at-startup nil)
|
||||||
|
(setq package-archives nil)
|
||||||
|
(when (and (boundp 'use-package-ensure-function)
|
||||||
|
(getenv "NIX_PROFILES"))
|
||||||
|
(setq use-package-ensure-function 'ignore)
|
||||||
|
(setq use-package-always-ensure nil))
|
||||||
|
|
||||||
;; -----------------------------------------------------------------------------
|
;; -----------------------------------------------------------------------------
|
||||||
;; --- Editor Defaults
|
;; --- Editor Defaults
|
||||||
;; -----------------------------------------------------------------------------
|
;; -----------------------------------------------------------------------------
|
||||||
@@ -387,11 +395,15 @@ frame if FRAME is nil, and to 1 if AMT is nil."
|
|||||||
(yas-global-mode 1))
|
(yas-global-mode 1))
|
||||||
|
|
||||||
;; Clean up whitespace
|
;; Clean up whitespace
|
||||||
(use-package whitespace-cleanup-mode
|
(use-package ethan-wspace
|
||||||
:diminish
|
:ensure t
|
||||||
|
:diminish ethan-wspace-mode
|
||||||
:config
|
:config
|
||||||
(setq whitespace-cleanup-mode-only-if-initially-clean nil)
|
;; Enable globally
|
||||||
(global-whitespace-cleanup-mode))
|
(global-ethan-wspace-mode 1)
|
||||||
|
|
||||||
|
;; Customize what to clean
|
||||||
|
(setq mode-require-final-newline nil)) ; ethan-wspace handles this
|
||||||
|
|
||||||
;; Rainbow delimiters
|
;; Rainbow delimiters
|
||||||
(use-package rainbow-delimiters)
|
(use-package rainbow-delimiters)
|
||||||
|
|||||||
Reference in New Issue
Block a user