> Hello Uwe,
> On 28/08/2025, Uwe Brauer wrote:

> I was describing what the code is supposed to do, and what it currently does 
> on my system.
> I am not quite sure of the reason why it doesn't work on your system. Is the 
> config the following?

> (add-hook 'LaTeX-mode-hook
>           (lambda () (add-hook 'after-change-functions
>                                #'preview-point-buf-change nil t)))

I edited yesterday quite a bit, and here are my impressions

    + How can I  turn off and on manually the functionality. I puzzled with
      this. Her is what I tried (I don't like lambdas)

--8<---------------cut here---------------start------------->8---

(defun my-turn-preview-always-on ()
  (add-hook 'after-change-functions #'preview-point-buf-change nil t))


(defun my-latex-turn-preview-always-on ()
  (interactive)
  (add-hook 'LaTeX-mode-hook 'my-turn-preview-always-on)
  (message "Now preview is always on!"))


(defun my-latex-turn-preview-always-off ()
  (interactive)
  (remove-hook 'LaTeX-mode-hook 'my-turn-preview-always-on)
  (message "Now preview is always off!"))

--8<---------------cut here---------------end--------------->8---

But calling my-latex-turn-preview-always-off did not remove the
functionality. (I also think that maybe the after-save-hook is more
appropriate for my workflow. In any case I am unable to remove/add the
functionality manually.


    + Al, you are the author of the nice functionality TeX-output-dir.
      Could the created .ini files also go into the TeX-output-dir?

Thanks

Uwe 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to