Update doom-modeline faces, add flymake end of line diagnostics, add nix-ts-mode package

This commit is contained in:
Evie Litherland-Smith 2025-01-06 17:50:30 +00:00
parent 9499c13dfa
commit 453a90c210

23
init.el
View file

@ -86,9 +86,8 @@
(size-indication-mode -1)
(doom-modeline-mode +1)
:config
;; (set-face-attribute 'doom-modeline nil :weight 'normal)
;; (set-face-attribute 'doom-modeline-buffer-path nil :slant 'normal)
)
(set-face-attribute 'doom-modeline nil :weight 'normal)
(set-face-attribute 'doom-modeline-buffer-path nil :slant 'normal))
(use-package dashboard
:if (package-installed-p 'dashboard)
@ -324,10 +323,10 @@
(with-eval-after-load 'mu4e
(require 'mu4e-modeline)
(setq mu4e-modeline-all-read '("R:" . "󰪲 :")
mu4e-modeline-all-clear '("C:" . "󰪲 :")
mu4e-modeline-new-items '("N:" . "󰧬 :")
mu4e-modeline-unread-items '("U:" . "󰻨 :"))
(setq mu4e-modeline-all-read '("" . "")
mu4e-modeline-all-clear '("" . "")
mu4e-modeline-new-items '("" . "")
mu4e-modeline-unread-items '("" . ""))
(mu4e-modeline-mode +1))
(with-eval-after-load 'mu4e
@ -1185,7 +1184,9 @@
(use-package flymake
:bind (("C-c C-." . flymake-goto-next-error)
("C-c C-," . flymake-goto-prev-error))
:hook ((prog-mode yaml-ts-mode) . (lambda () (flymake-mode +1))))
:hook ((prog-mode yaml-ts-mode) . (lambda () (flymake-mode +1)))
:custom
(flymake-show-diagnostics-at-end-of-line 'short))
(use-package flymake-shellcheck
:if (package-installed-p 'flymake-shellcheck)
@ -1266,7 +1267,6 @@
(use-package nix-mode
:if (package-installed-p 'nix-mode)
:mode "\\.nix$"
:functions nix-prettify-global-mode
:config
(require 'nix)
@ -1275,6 +1275,11 @@
(require 'nix-store)
(nix-prettify-global-mode +1))
(use-package nix-ts-mode
:if (package-installed-p 'nix-ts-mode)
:after nix-mode
:mode "\\.nix$")
(use-package sh-script
:custom
(sh-basic-offset 2))