Why isn't nix-mode part of prog-mode?
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user