unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Gottfried <gottfried@posteo.de>
To: Jean Louis <bugs@gnu.support>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: timer for asciidoc
Date: Sun,  5 Mar 2023 15:08:02 +0000	[thread overview]
Message-ID: <7b91d112-0cee-a441-26d1-e6a4c382310f@posteo.de> (raw)


[-- 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 --]

                 reply	other threads:[~2023-03-05 15:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7b91d112-0cee-a441-26d1-e6a4c382310f@posteo.de \
    --to=gottfried@posteo.de \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).