Fix font naming issue
* modified: lisp/init-ui.el
This commit is contained in:
@@ -106,11 +106,11 @@
|
|||||||
(princ (format "Major mode: %s\n" major-mode))
|
(princ (format "Major mode: %s\n" major-mode))
|
||||||
(princ (format "Font-lock mode: %s\n" (if font-lock-mode "ENABLED" "DISABLED")))
|
(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 "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")))
|
(if font-lock-keywords "YES" "NO")))
|
||||||
(princ (format "Buffer size: %d bytes\n" (buffer-size)))
|
(princ (format "Buffer size: %d bytes\n" (buffer-size)))
|
||||||
(princ (format "File size threshold check: %s\n"
|
(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"
|
"LARGE FILE (>1MB) - highlighting may be disabled"
|
||||||
"Normal size")))
|
"Normal size")))
|
||||||
(princ "\nTo fix issues, try:\n")
|
(princ "\nTo fix issues, try:\n")
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
(when (and (boundp 'font-lock-mode) (not font-lock-mode))
|
(when (and (boundp 'font-lock-mode) (not font-lock-mode))
|
||||||
(font-lock-mode 1))
|
(font-lock-mode 1))
|
||||||
;; For tree-sitter modes, ensure proper setup
|
;; 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))
|
(eq major-mode 'c++-ts-mode))
|
||||||
(when (fboundp 'treesit-font-lock-recompute-features)
|
(when (fboundp 'treesit-font-lock-recompute-features)
|
||||||
(treesit-font-lock-recompute-features))))
|
(treesit-font-lock-recompute-features))))
|
||||||
@@ -195,9 +195,8 @@
|
|||||||
:width 'normal)
|
:width 'normal)
|
||||||
|
|
||||||
;; Ensure font settings apply to new frames
|
;; Ensure font settings apply to new frames
|
||||||
;; Use the proper font spec format
|
;; Use string format for fonts starting with numbers (font-spec has parsing issues)
|
||||||
(add-to-list 'default-frame-alist
|
(add-to-list 'default-frame-alist '(font . "0xProto Nerd Font Mono-12"))
|
||||||
(cons 'font (font-spec :family "0xProto Nerd Font Mono" :size 18)))
|
|
||||||
|
|
||||||
;;; Diff-hl face customizations
|
;;; Diff-hl face customizations
|
||||||
(with-eval-after-load 'diff-hl
|
(with-eval-after-load 'diff-hl
|
||||||
|
|||||||
Reference in New Issue
Block a user