all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Christopher Dimech <dimech@gmx.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 58282@debbugs.gnu.org
Subject: bug#58282: Distinguishing glasses-mode display
Date: Tue, 04 Oct 2022 15:53:59 +0000	[thread overview]
Message-ID: <lHm03gM3RHmgPX6Onxk-k3n3LdhS4CLDvdHZBF4kr39erilyy547cEHt4nmzHlOJqqgkWotpdTTdVUOfwCLSoMgGF49hReMnOCpbLNInq-U=@proton.me> (raw)
In-Reply-To: <trinity-57d7a5a4-ec6e-4363-b46f-e802c143ad96-1664895164219@3c-app-mailcom-bs12>

------- Original Message -------
On Tuesday, October 4th, 2022 at 2:52 PM, Christopher Dimech <dimech@gmx.com> wrote:

> 
> 
> > Sent: Wednesday, October 05, 2022 at 2:46 AM
> > From: "uzibalqa" uzibalqa@proton.me
> > To: "Eli Zaretskii" eliz@gnu.org
> > Cc: "Christopher Dimech" dimech@gmx.com, 58282@debbugs.gnu.org
> > Subject: Re: bug#58282: Distinguishing glasses-mode display
> > 
> > ------- Original Message -------
> > On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > > From: Christopher Dimech dimech@gmx.com
> > > > Cc: uzibalqa uzibalqa@proton.me, 58282@debbugs.gnu.org
> > > > Date: Tue, 4 Oct 2022 13:47:33 +0200
> > > > 
> > > > > I think we have this already: customize glasses-face to some distinct
> > > > > face, like 'bold'. Then the capital letters of identifiers where
> > > > > glasses.el inserted underscores will be shown in bold, and you can
> > > > > visually distinguish them from the original underscores.
> > > > 
> > > > Because I use bold font the default does not work for me.
> > > 
> > > ??? What default? The default is that glasses-face is just nil, so no
> > > special face is put on any parts of the identifiers. 'bold' was just
> > > an example of a non-default face; you can use any face there.
> > > 
> > > > I want to make the changes in my init file. How can I change the
> > > > foreground and background colour of the glasses matches?
> > > 
> > > You can't. This face is not about changing the matches, it is about
> > > changing the appearance of the capital letters in identifiers where
> > > glasses-mode adds the separator (which is underscore _ by default)
> > > 
> > > > Is it possible for users to use a UTF8 Code as separator, and if so,
> > > > how can this be done?
> > > 
> > > Customize the variable glasses-separator. (This has nothing to do
> > > with the original bug report, though.)
> > 
> > How can I change the colour of the capital letters or use utf8 using
> > elisp commands?
> 
> 
> You could just do
> 
> (setq glasses-separator "➾")
> 
> with the character being a utf8 symbol.
 
I would prefer using utf symbols than changing colours.

I am using the following function using hex code for Black Rightwards Arrowhead

(defun typex-camelsens ()

  "Splits CamelCase phrases using separator."

  (interactive)

  (setq glasses-separator "\u27A4")

  (glasses-mode))

How can I pass an arbitrary hex code interactively, besides using a default?







  reply	other threads:[~2022-10-04 15:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04  3:36 bug#58282: Distinguishing glasses-mode display uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-04  7:18 ` Eli Zaretskii
2022-10-04 11:01   ` Lars Ingebrigtsen
2022-10-04 11:47   ` Christopher Dimech
2022-10-04 12:27     ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-04 12:43     ` Eli Zaretskii
2022-10-04 14:46       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-04 14:52         ` Christopher Dimech
2022-10-04 15:53           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-10-04 16:28           ` Eli Zaretskii
2022-10-04 16:26         ` Eli Zaretskii
2022-10-04 17:28           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-04 18:02             ` Eli Zaretskii
2022-10-04 18:09               ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-04 18:16                 ` Eli Zaretskii
2022-10-06  0:56                   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-06  6:35                     ` Eli Zaretskii
2022-10-06 11:53                       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors

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='lHm03gM3RHmgPX6Onxk-k3n3LdhS4CLDvdHZBF4kr39erilyy547cEHt4nmzHlOJqqgkWotpdTTdVUOfwCLSoMgGF49hReMnOCpbLNInq-U=@proton.me' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=58282@debbugs.gnu.org \
    --cc=dimech@gmx.com \
    --cc=eliz@gnu.org \
    --cc=uzibalqa@proton.me \
    /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.