help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prettify keywords


From: pietru
Subject: Re: Prettify keywords
Date: Wed, 3 Feb 2021 22:42:35 +0100

Equipped with this information my task would not be too difficult to
implement.  I thought of giving up on it.

Would it be possible to include the code in a minor mode that I am writing
for texinfo?  The minor mode is called crucible.  So I can have 

(defun pretty ()
  (push '("\\alpha" . ?α) prettify-symbols-alist)
  (push '("\\beta" . ?β) prettify-symbols-alist)
  (prettify-symbols-mode))

(add-hook 'texinfo-mode-hook #'pretty)




> Sent: Thursday, February 04, 2021 at 9:37 AM
> From: "Gregory Heytings" <gregory@heytings.org>
> To: pietru@caramail.com
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Prettify keywords
>
> 
> >
> > I can see a bit what you mean.  prettify-symbols-mode is then a minor 
> > mode that I can use with the texinfo major mode.  Correct me if I am 
> > wrong please.
> >
> 
> Yes, that's correct.  As you see in the code: "(define-minor-mode 
> prettify-symbols-mode ...".  It is a minor mode which, as any other minor 
> mode, you can use with any major mode.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]