From 41b8b20f76861d41082e1e7211595a799584bc28 Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Wed, 21 Jan 2026 17:11:46 +0100 Subject: [PATCH] Fix font naming issue * modified: lisp/init-ui.el --- lisp/init-ui.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/init-ui.el b/lisp/init-ui.el index 9fb98db..beef799 100644 --- a/lisp/init-ui.el +++ b/lisp/init-ui.el @@ -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