Skip to content

Commit

Permalink
Enable line numbers for YAML too
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Sep 25, 2024
1 parent e1c7c3c commit 4add524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/init-editing-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@

(when (fboundp 'display-line-numbers-mode)
(setq-default display-line-numbers-width 3)
(add-hook 'prog-mode-hook 'display-line-numbers-mode))
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
(add-hook 'yaml-mode-hook 'display-line-numbers-mode)
(add-hook 'yaml-ts-mode-hook 'display-line-numbers-mode))



Expand Down

0 comments on commit 4add524

Please sign in to comment.