Why isn't nix-mode part of prog-mode?

This commit is contained in:
Emmet
2025-02-12 14:12:35 -06:00
parent cd1d2d866b
commit d63f9982f4
2 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,7 @@
(use-package line-wrapping-and-numbers (use-package line-wrapping-and-numbers
:load-path "./lib" :load-path "./lib"
:after (org markdown git-timemachine)) :after (org markdown git-timemachine nix-mode))
(use-package ultra-scroll (use-package ultra-scroll
:init :init

View File

@ -33,6 +33,8 @@
(add-hook 'markdown-mode-hook 'visual-line-mode) (add-hook 'markdown-mode-hook 'visual-line-mode)
(add-hook 'prog-mode-hook 'truncate-lines-on) (add-hook 'prog-mode-hook 'truncate-lines-on)
(add-hook 'prog-mode-hook 'visual-line-mode-off) (add-hook 'prog-mode-hook 'visual-line-mode-off)
(add-hook 'nix-mode-hook 'truncate-lines-on)
(add-hook 'nix-mode-hook 'visual-line-mode-off)
(defun apply-proper-line-wrapping () (defun apply-proper-line-wrapping ()
"Apply proper line wrapping and visual line mode settings according to whether or not the current mode derives from `prog-mode`." "Apply proper line wrapping and visual line mode settings according to whether or not the current mode derives from `prog-mode`."
(if (derived-mode-p 'prog-mode) (if (derived-mode-p 'prog-mode)