* 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.