Fix font naming issue

* modified: lisp/init-ui.el
This commit is contained in:
Jens Luedicke
2026-01-21 17:11:46 +01:00
parent b02a15f7e5
commit 41b8b20f76

View File

@@ -106,11 +106,11 @@
(princ (format "Major mode: %s\n" major-mode))
(princ (format "Font-lock mode: %s\n" (if font-lock-mode "ENABLED" "DISABLED")))
(princ (format "Global font-lock mode: %s\n" (if global-font-lock-mode "ENABLED" "DISABLED")))
(princ (format "Font-lock keywords defined: %s\n"
(princ (format "Font-lock keywords defined: %s\n"
(if font-lock-keywords "YES" "NO")))
(princ (format "Buffer size: %d bytes\n" (buffer-size)))
(princ (format "File size threshold check: %s\n"
(if (> (buffer-size) (* 1024 1024))
(if (> (buffer-size) (* 1024 1024))
"LARGE FILE (>1MB) - highlighting may be disabled"
"Normal size")))
(princ "\nTo fix issues, try:\n")
@@ -127,7 +127,7 @@
(when (and (boundp 'font-lock-mode) (not font-lock-mode))
(font-lock-mode 1))
;; For tree-sitter modes, ensure proper setup
(when (or (eq major-mode 'c-ts-mode)
(when (or (eq major-mode 'c-ts-mode)
(eq major-mode 'c++-ts-mode))
(when (fboundp 'treesit-font-lock-recompute-features)
(treesit-font-lock-recompute-features))))
@@ -195,9 +195,8 @@
:width 'normal)
;; Ensure font settings apply to new frames
;; Use the proper font spec format
(add-to-list 'default-frame-alist
(cons 'font (font-spec :family "0xProto Nerd Font Mono" :size 18)))
;; Use string format for fonts starting with numbers (font-spec has parsing issues)
(add-to-list 'default-frame-alist '(font . "0xProto Nerd Font Mono-12"))
;;; Diff-hl face customizations
(with-eval-after-load 'diff-hl