From 97aac1eb406f0c69dc030e283282a9fc7e11c857 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 23 Feb 2018 09:34:57 +0100 Subject: [PATCH] Emacs: fix for font not loaded in emacsclient --- emacs/emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/emacs.el b/emacs/emacs.el index ac5ddc3..db2c836 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -161,6 +161,11 @@ ;; set font (set-frame-font "Fira Code 8" nil t) +;; set the default font after the frame is created. +;; needed because of some issue with emacsclient. +(add-hook 'after-make-frame-functions + (lambda (frame) (set-frame-font "Fira Code 8" nil t))) + ;; ----------------------------------------------------------------------------- ;; Custom keybindings