Use custom-set-faces! instead and update the cons message

This commit is contained in:
Carlos Feliciano Barba 2020-06-25 22:43:37 -04:00 committed by GitHub
parent e0d6f79202
commit 2db39eafa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,14 +48,15 @@ The first character of the buffers changes to a highlighted, user-selectable
character.
+ Pros: the content of the buffers are always visible.
+ Cons: Requires custom configuration to show large letters.
+ Cons: The display characters are small and difficult to see (see below for a way to enlarge them).
**** Custom font-face example
This changes the ace-window display to show a white letter with a red background. The box attribute adds some padding.
#+BEGIN_SRC elisp
(custom-set-faces
'(aw-leading-char-face
((t (:foreground "white" :background "red" :weight bold :height 2.5 :box (:line-width 10 :color "red"))))))
(custom-set-faces!
'(aw-leading-char-face
:foreground "white" :background "red"
:weight bold :height 2.5 :box (:line-width 10 :color "red")))
#+END_SRC
** switch-window