summaryrefslogtreecommitdiff
path: root/emacs/functions.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/functions.el')
-rw-r--r--emacs/functions.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/functions.el b/emacs/functions.el
index accb52b..9eb405b 100644
--- a/emacs/functions.el
+++ b/emacs/functions.el
@@ -43,6 +43,13 @@ enabled."
(enable-theme light-theme)
(disable-theme dark-theme)))))
+(defun my/set-frame-font ()
+ "Set font in the selected frame."
+ (let* ((pred (lambda (font) (x-family-fonts (plist-get font :family))))
+ (font (seq-find pred my/fonts)))
+ (when font
+ (apply #'set-face-attribute `(default nil ,@font)))))
+
;; “Window Management” Functions