diff options
| author | bh <qn+git@excalibur.computer> | 2025-12-19 21:42:23 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2025-12-19 21:42:23 +0800 |
| commit | 9354ac3a120c0945702b70db2a87defb9723c459 (patch) | |
| tree | 18304763c9799af8912afd6760097ec5ff0794b1 /init.el | |
| parent | 70e917d344f92c712a5b812ece5fa1a30a8eb687 (diff) | |
Fixed the 'e' command in eshell
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -73,11 +73,21 @@ ring-bell-function 'ignore) ;; Configure line numbers with themed colors -;; Only show line numbers in text/code buffers, not special buffers (treemacs, magit, etc.) -(add-hook 'prog-mode-hook 'display-line-numbers-mode) -(add-hook 'text-mode-hook 'display-line-numbers-mode) -(add-hook 'fundamental-mode-hook 'display-line-numbers-mode) +;; Enable globally, then disable in specific modes +(global-display-line-numbers-mode 1) (setq display-line-numbers-type 'relative) ;; Relative line numbers for Evil mode + +;; Disable line numbers in special buffers +(dolist (mode '(org-mode-hook + term-mode-hook + shell-mode-hook + eshell-mode-hook + treemacs-mode-hook + magit-mode-hook + help-mode-hook + dired-mode-hook)) + + (add-hook mode (lambda () (display-line-numbers-mode 0)))) (set-face-attribute 'line-number nil :foreground "#4fa8a8" ;; Softer cyan for line numbers :background "#003636") |
