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

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

Re: Separating colour and positioning functioning


From: Christopher Dimech
Subject: Re: Separating colour and positioning functioning
Date: Tue, 9 Feb 2021 03:30:37 +0100

I am thinking to call tex-font-lock-unfontify-region

Have done

(defun supinf-disable ()
  "Disable the supinf typeface"
  (font-lock-flush (point-min) (point-max))
  (setq font-lock-defaults
        '(font-lock-unfontify-region-function . tex-font-lock-unfontify-region))
  (font-lock-flush (point-min) (point-max)) )




> Sent: Tuesday, February 09, 2021 at 1:01 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Separating colour and positioning functioning
>
> Christopher Dimech wrote:
>
> > I want to have two functions, one to enable supinf, another
> > to disable it.
>
> An example toggle function:
>
> (defvar erc-do-spell)
> (setq erc-do-spell t)
>
> (defun erc-toggle-spell ()
>   (interactive)
>   (setq erc-do-spell (not erc-do-spell)) )
>
> https://dataswamp.org/~incal/emacs-init/erc-incal.el
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



reply via email to

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