From 1224a74bf908ff5446058b8b607c617e7857153b Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Fri, 6 Dec 2024 17:02:38 -0500 Subject: [PATCH] Fix font handling in Wayland --- global.org | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/global.org b/global.org index 045abfe..c50886a 100644 --- a/global.org +++ b/global.org @@ -105,13 +105,19 @@ later on for dealing with bold weight. To avoid flickering one should also set the font in .Xresources #+begin_src emacs-lisp - (set-face-font 'default "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") - (set-face-font 'fixed-pitch "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") - (set-face-font 'fixed-pitch-serif "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") - (set-face-font 'variable-pitch "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") - #+end_src + (set-face-font 'default "Hackminus") + (set-face-font 'fixed-pitch "Hackminus") + (set-face-font 'fixed-pitch-serif "Hackminus") + (set-face-font 'variable-pitch "Hackminus") + #+end_src * Global settings +** server name + I prefer to keep one server for each KDE activity, so + set the server name to be the name of the current activity + #+begin_src emacs-lisp +; (setq server-name (kde-current-activity-name)) + #+end_src ** Global helper functions This is a helper function used to set several global keys given in provided as a parameter in ~binding-alist~ @@ -134,7 +140,7 @@ (set-face-attribute face nil :weight 'normal) (set-face-attribute face nil :slant 'normal)) (face-list)) - (set-face-font 'default "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1")) + (set-face-font 'default "Hackminus")) #+end_src This function saves the current buffer after the specified amount of idle time, unless something calls it again and then the timer