Fix font handling in Wayland

master
Jacopo De Simoi 2 years ago
parent 82813f4853
commit 1224a74bf9
  1. 16
      global.org

@ -105,13 +105,19 @@
later on for dealing with bold weight. To avoid flickering one later on for dealing with bold weight. To avoid flickering one
should also set the font in .Xresources should also set the font in .Xresources
#+begin_src emacs-lisp #+begin_src emacs-lisp
(set-face-font 'default "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") (set-face-font 'default "Hackminus")
(set-face-font 'fixed-pitch "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") (set-face-font 'fixed-pitch "Hackminus")
(set-face-font 'fixed-pitch-serif "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") (set-face-font 'fixed-pitch-serif "Hackminus")
(set-face-font 'variable-pitch "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") (set-face-font 'variable-pitch "Hackminus")
#+end_src #+end_src
* Global settings * 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 ** Global helper functions
This is a helper function used to set several global keys given in This is a helper function used to set several global keys given in
provided as a parameter in ~binding-alist~ provided as a parameter in ~binding-alist~
@ -134,7 +140,7 @@
(set-face-attribute face nil :weight 'normal) (set-face-attribute face nil :weight 'normal)
(set-face-attribute face nil :slant 'normal)) (set-face-attribute face nil :slant 'normal))
(face-list)) (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 #+end_src
This function saves the current buffer after the specified amount This function saves the current buffer after the specified amount
of idle time, unless something calls it again and then the timer of idle time, unless something calls it again and then the timer

Loading…
Cancel
Save