emacs : daemon configuration

This commit is contained in:
2025-03-15 16:58:03 +09:00
parent 8e17f130e7
commit 24f816edd9
2 changed files with 14 additions and 6 deletions

View File

@ -4,7 +4,6 @@
(defun custom-setup-fonts ()
"setup fonts..."
(when (display-graphic-p)
;; default font
(cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono"
"Source Code Pro" "DejaVu Sans Mono")
@ -33,10 +32,21 @@
when (font-installed-p font)
return (progn
(setq face-font-rescale-alist `((,font . 1.00)))
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font))))))
(custom-setup-fonts)
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font)))))
(when (display-graphic-p)
(custom-setup-fonts))
(add-hook 'window-setup-hook #'custom-setup-fonts)
(if (daemonp)
(add-hook 'after-make-frame-functions
(lambda (frame)
;; (setq doom-modeline-icon t)
(with-selected-frame frame
(custom-setup-fonts))))
(custom-setup-fonts))
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
;; select theme
(setq custom-theme-sel 'doom-one)
;; default transparency (85 . 85) or (100 . 100)

View File

@ -27,9 +27,7 @@
:straight t
:ensure t
:init
(if (display-graphic-p)
(load-theme custom-theme-sel t)
(load-theme 'doom-gruvbox t))
(load-theme custom-theme-sel t)
:config
(doom-themes-visual-bell-config))
(use-package doom-modeline