]> git.eshelyaron.com Git - emacs.git/commitdiff
Update options that depend on 'which-key-dont-use-unicode'
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 24 Jun 2024 07:42:20 +0000 (09:42 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 13:30:58 +0000 (15:30 +0200)
* lisp/which-key.el (which-key-dont-use-unicode): Add a custom setter
that re-evaluates a manual list of options use
'which-key-dont-use-unicode' to determine their default value.

https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00130.html
(cherry picked from commit 768e92b9c0214a2aa1be2afbee48c455583d3110)

lisp/which-key.el

index ee7a1cea3338e17e667a9778feca190c617e3591..91007ce4ada2c137758ee4be9b97988e2ff81b88 100644 (file)
@@ -128,6 +128,11 @@ of the which-key popup."
   "If non-nil, don't use any unicode characters in default setup.
 For affected settings, see `which-key-replacement-alist', `which-key-ellipsis'
 `which-key-separator'."
+  :set (lambda (sym val)
+         (custom-set-default sym val)
+         (mapc #'custom-reevaluate-setting
+               '(which-key-separator
+                 which-key-ellipsis)))
   :type 'boolean
   :package-version "1.0" :version "30.1")