all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Justin Burkett <justin@burkett.cc>
To: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: help-gnu-emacs@gnu.org, Philip Kaludercic <philipk@posteo.net>
Subject: Re: Setting 'which-key-dont-use-unicode'
Date: Sun, 23 Jun 2024 21:44:44 -0400	[thread overview]
Message-ID: <CAF8XuLh_ima5DjsaRAPVUow7Ezo3pYzqPwkJ1Dnhxs+HRwBt6A@mail.gmail.com> (raw)
In-Reply-To: <877ceftlof.fsf@gmail.com>

Hi,

First, don't set which-key-mode as a custom variable. This is a
function that should be called after which-key is loaded.

For your original question, the important thing is that
which-key-dont-use-unicode is set before which-key is loaded. (c)
definitely won't work for this reason. The fact that (d) is working,
which takes this logic to the extreme, but the others are not suggests
that something is causing which-key to load before the variable is
set.

Combining the two ideas, try

(use-package which-key
  :custom
  (which-key-dont-use-unicode nil)
  :config
  (which-key-mode t))

If that doesn't work, look for another culprit that might be loading
which-key (perhaps because it depends on it) earlier.

Justin

On Sun, Jun 23, 2024 at 5:05 PM Kévin Le Gouguec
<kevin.legouguec@gmail.com> wrote:
>
> Hello!
>
> Paging help-gnu-emacs before filing a bug because I'm not sure of the
> intended behavior.  After seeing 2024-06-18 "Disable usage of unicode
> for which-key by default" (cc0a3a5f65b), I promptly went to my .emacs to
> opt in to Unicode symbols, and was surprised to meet some resistance.
>
> In an Emacs built from 2024-06-23 "; Fix typos" (fb11294d415) on the
> emacs-30 branch, I tried
>
>   (a) this .emacs:
>
>     (use-package which-key
>       :custom
>       (which-key-dont-use-unicode nil)
>       (which-key-mode t))
>
>   (b) this .emacs:
>
>     (custom-set-variables
>      '(which-key-dont-use-unicode nil)
>      '(which-key-mode t))
>
>   (c) an empty .emacs, then
>
>     M-x which-key-mode
>     M-x toggle-option which-key-dont-use-unicode
>
>   (d) a combination of this .emacs:
>
>     (use-package which-key
>       :custom
>       (which-key-mode t))
>
>   with this .emacs.d/early-init.el:
>
>     (setq which-key-dont-use-unicode nil)
>
> and only attempt (d) yielded which-key messages with '→' instead of ':'
> for the separator symbol (resp. '…' instead of '..'  for truncation).
>
> Wondering if I am doing something wrong (a definite possibility, the
> perils of juggling ${HOME}s for repro purposes), if (d) really is the
> intended way to effectively unset which-key-dont-use-unicode, or if this
> is a potential bug report or feature request?



  reply	other threads:[~2024-06-24  1:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23 21:05 Setting 'which-key-dont-use-unicode' Kévin Le Gouguec
2024-06-24  1:44 ` Justin Burkett [this message]
2024-06-24  2:58   ` Philip Kaludercic
2024-06-24  6:06     ` Kévin Le Gouguec
2024-06-24  7:12       ` Philip Kaludercic
2024-06-24 13:02         ` Robert Pluim
2024-06-25  5:52           ` Kévin Le Gouguec
2024-06-26 13:38             ` Philip Kaludercic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF8XuLh_ima5DjsaRAPVUow7Ezo3pYzqPwkJ1Dnhxs+HRwBt6A@mail.gmail.com \
    --to=justin@burkett.cc \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kevin.legouguec@gmail.com \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.