mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 01:54:02 +05:30
Why isn't nix-mode part of prog-mode?
This commit is contained in:
parent
cd1d2d866b
commit
d63f9982f4
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue