unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* timer for asciidoc
@ 2023-03-05 15:08 Gottfried
  0 siblings, 0 replies; only message in thread
From: Gottfried @ 2023-03-05 15:08 UTC (permalink / raw)
  To: Jean Louis, help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1003 bytes --]

Hi Jean,

thank you very much for your help.

I think I solved the problem for now.


In the "asciidoc.el" file I uncommented the last line:

;;(run-with-timer 1 3 #'rcd-asciidoctor-preview-buffer-as-html)

and therefore when opening emacs

it doesn’t give me this error message:
desktop file is running, it may be dangerous to...

because you said anyway:
only when I need the timer I should run it.

> ;; Though I would not recommend putting this in init.el as that is
> ;; too many times preview. It is better turning on and off the timer
> ;; function only when you need it.
> ;;(run-with-timer 1 3 #'rcd-asciidoctor-preview-buffer-as-html)


Kind regards

Gottfried





> Then I could invoke it as command:
> 
> M-x toggle-markdown-preview
> 
> and then timer toggles, it turns on or turns off. 
> 
> Then you could hold your variable with the timer and timer function in separate file, it need not be init.el and you load it when you need it.

-- 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-05 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05 15:08 timer for asciidoc Gottfried

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).