all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: michael-franzese@gmx.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: pushing to prettify-symbols-alist
Date: Sat, 13 Feb 2021 21:07:07 +0100	[thread overview]
Message-ID: <877dnb68b8.fsf@posteo.net> (raw)
In-Reply-To: <trinity-11ebf2f0-60c5-4520-96be-81d98318c250-1613239177931@3c-app-mailcom-bs12> (michael-franzese@gmx.com's message of "Sat, 13 Feb 2021 18:59:37 +0100")

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

michael-franzese@gmx.com writes:

> Is there a better way to write the following when you have many
> things to push to prettify-symbols-alist?
>
> (push
'("\\alpha" . ?α) prettify-symbols-alist)

I think it's better to use add-to-list, if you want to add this in your
own configuration. But if you have a lot of elements, you might also
consider something like

        (setq prettify-symbols-alist
              (append '(("\\alpha" . ?α)
                        ("\\beta" . ?β)
                        ("\\gamma" . ?γ)
                        ;; ...
                        )
                      prettify-symbols-alist))

-- 
	Philip K.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

      reply	other threads:[~2021-02-13 20:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-13 17:59 pushing to prettify-symbols-alist michael-franzese
2021-02-13 20:07 ` Philip Kaludercic [this message]

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=877dnb68b8.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael-franzese@gmx.com \
    /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.