Disable usage of unicode for which-key by default
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 18 Jun 2024 08:53:18 +0000 (10:53 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Tue, 18 Jun 2024 09:31:26 +0000 (11:31 +0200)
* lisp/which-key.el (which-key-dont-use-unicode): Set to t.
(which-key-separator, which-key-ellipsis): Ensure that these
options are set after 'which-key-dont-use-unicode', as their
default value depends on it.

lisp/which-key.el

index 45f8a31364aeda394ac6c3bd49944ff82ffe7b4f..1de599e549783b151907f5e475d43567945f9ba4 100644 (file)
@@ -124,7 +124,7 @@ of the which-key popup."
   :type 'integer
   :package-version "1.0" :version "30.1")
 
-(defcustom which-key-dont-use-unicode nil
+(defcustom which-key-dont-use-unicode t
   "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'."
@@ -137,6 +137,7 @@ For affected settings, see `which-key-replacement-alist', `which-key-ellipsis'
 Default is \" → \", unless `which-key-dont-use-unicode' is non
 nil, in which case the default is \" : \"."
   :type 'string
+  :set-after '(which-key-dont-use-unicode)
   :package-version "1.0" :version "30.1")
 
 (defcustom which-key-ellipsis
@@ -146,6 +147,7 @@ Default is \"…\", unless `which-key-dont-use-unicode' is non nil,
 in which case the default is \"..\".  This can also be the empty
 string to truncate without using any ellipsis."
   :type 'string
+  :set-after '(which-key-dont-use-unicode)
   :package-version "1.0" :version "30.1")
 
 (defcustom which-key-prefix-prefix "+"