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 --]
prev parent 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
List information: https://www.gnu.org/software/emacs/
* 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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).