mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-16 00:51:35 +09:00
emacs : daemon configuration
This commit is contained in:
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
(defun custom-setup-fonts ()
|
(defun custom-setup-fonts ()
|
||||||
"setup fonts..."
|
"setup fonts..."
|
||||||
(when (display-graphic-p)
|
|
||||||
;; default font
|
;; default font
|
||||||
(cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono"
|
(cl-loop for font in '("FiraCode Nerd Font Mono" "Jetbrains Mono"
|
||||||
"Source Code Pro" "DejaVu Sans Mono")
|
"Source Code Pro" "DejaVu Sans Mono")
|
||||||
@ -33,10 +32,21 @@
|
|||||||
when (font-installed-p font)
|
when (font-installed-p font)
|
||||||
return (progn
|
return (progn
|
||||||
(setq face-font-rescale-alist `((,font . 1.00)))
|
(setq face-font-rescale-alist `((,font . 1.00)))
|
||||||
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font))))))
|
(set-fontset-font t '(#x1100 . #xffdc) (font-spec :family font)))))
|
||||||
(custom-setup-fonts)
|
(when (display-graphic-p)
|
||||||
|
(custom-setup-fonts))
|
||||||
(add-hook 'window-setup-hook #'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
|
;; select theme
|
||||||
(setq custom-theme-sel 'doom-one)
|
(setq custom-theme-sel 'doom-one)
|
||||||
;; default transparency (85 . 85) or (100 . 100)
|
;; default transparency (85 . 85) or (100 . 100)
|
||||||
|
|||||||
@ -27,9 +27,7 @@
|
|||||||
:straight t
|
:straight t
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
(if (display-graphic-p)
|
(load-theme custom-theme-sel t)
|
||||||
(load-theme custom-theme-sel t)
|
|
||||||
(load-theme 'doom-gruvbox t))
|
|
||||||
:config
|
:config
|
||||||
(doom-themes-visual-bell-config))
|
(doom-themes-visual-bell-config))
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
|
|||||||
Reference in New Issue
Block a user