From e0d6f7920222457871c580c497d91f4f2ce9babc Mon Sep 17 00:00:00 2001 From: Carlos Feliciano Barba Date: Thu, 25 Jun 2020 19:30:37 -0400 Subject: [PATCH 1/2] Clarify ace-window font size and add example --- modules/ui/window-select/README.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/ui/window-select/README.org b/modules/ui/window-select/README.org index 1f080e2e5..f45445b63 100644 --- a/modules/ui/window-select/README.org +++ b/modules/ui/window-select/README.org @@ -48,7 +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: The displayed characters are small and difficult to see. + + Cons: Requires custom configuration to show large letters. + +**** 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")))))) +#+END_SRC ** switch-window Replaces the entire buffer with large letters. From 2db39eafa1e80ef981ffc76db798b047c00a5eea Mon Sep 17 00:00:00 2001 From: Carlos Feliciano Barba Date: Thu, 25 Jun 2020 22:43:37 -0400 Subject: [PATCH 2/2] Use custom-set-faces! instead and update the cons message --- modules/ui/window-select/README.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/ui/window-select/README.org b/modules/ui/window-select/README.org index f45445b63..25e5c0483 100644 --- a/modules/ui/window-select/README.org +++ b/modules/ui/window-select/README.org @@ -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