From: Arthur Miller <arthur.miller@live.com>
To: emacs-orgmode@gnu.org
Subject: What would be "cheapest" way to toggle emphasized text?
Date: Tue, 25 Jan 2022 07:26:10 +0100 [thread overview]
Message-ID: <AM9PR09MB4977EAFF4DD90B60B2178BFE965F9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
Hello,
can anybody tell me what is the reason why org-mode has to be restarted when
'org-fontify-emphasized-text' is changed?
If I would like to have an interactive "toggle" to control rendering of
emphasized text, is there any "cheaper" way to achieve that but to restart
org-mode?
#+begin_src emacs-lisp
(defun org-mode-toggle-emphasized-text ()
(interactive)
(setq org-fontify-emphasized-text
(not org-fontify-emphasized-text))
(org-mode-restart))
#+end_src
I have tried to go through the buffer and reset text properties for org-emphais
text property and to re-fontify buffer but I didn't manage to find any way but
to restart the org-mode. I would like to skip all the work done in
initialization if possible.
Thanks for help
reply other threads:[~2022-01-25 7:07 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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR09MB4977EAFF4DD90B60B2178BFE965F9@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).