diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-10 17:51:30 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-10 18:33:55 +0100 |
commit | 6377db11b2757ae003d013b54c31aa6fa9253de4 (patch) | |
tree | 57cfcbb002570310fb37bfb6f3109266482ff4c0 | |
parent | Dotfiles: Emacs: Disable autosave (diff) | |
download | nixos-config-6377db11b2757ae003d013b54c31aa6fa9253de4.tar.gz nixos-config-6377db11b2757ae003d013b54c31aa6fa9253de4.tar.bz2 nixos-config-6377db11b2757ae003d013b54c31aa6fa9253de4.zip |
Dotfiles: Emacs: Fix emacs daemon fonts
-rw-r--r-- | dotfiles/.emacs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs index 9813d4e..81600bf 100644 --- a/dotfiles/.emacs +++ b/dotfiles/.emacs @@ -31,15 +31,17 @@ doom-themes-enable-italic t) (load-theme 'doom-one t) -(cond - ((find-font (font-spec :name "Inconsolata LGC Nerd Font")) - (set-face-attribute 'default nil +(defun my/setup-font-faces () +(when (display-graphic-p) + (set-face-attribute 'default nil :font "Inconsolata LGC Nerd Font 11" :weight 'medium) - ;; Needed for emacsclient or fonts will be smaller than expected - (add-to-list 'default-frame-alist '(font . "Inconsolata LGC Nerd Font 11"))) + ) ) +(add-hook 'after-init-hook 'my/setup-font-faces) +(add-hook 'server-after-make-frame-hook 'my/setup-font-faces) + (setq-default line-spacing 0.10) (setq make-backup-files nil) @@ -110,7 +112,7 @@ (use-package lsp-bridge :ensure t - :hook ((haskell-mode nix-mode jq-mode c-mode c++-mode c-or-c++-mode) . lsp-deferred) + :hook ((haskell-mode nix-mode jq-mode c-mode c++-mode c-or-c++-mode rust-mode) . lsp-deferred) :commands (lsp lsp-deferred) :config (setq lsp-clients-clangd-args '("-j=4" "-background-index" "--log=error" "--clang-tidy" "--enable-config")) |