emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* What would be "cheapest" way to toggle emphasized text?
@ 2022-01-25  6:26 Arthur Miller
  0 siblings, 0 replies; only message in thread
From: Arthur Miller @ 2022-01-25  6:26 UTC (permalink / raw)
  To: emacs-orgmode


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

#+begin_src emacs-lisp
(defun org-mode-toggle-emphasized-text ()
  (setq org-fontify-emphasized-text
        (not org-fontify-emphasized-text))

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

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

only message in thread, other threads:[~2022-01-25  7:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25  6:26 What would be "cheapest" way to toggle emphasized text? Arthur Miller

Code repositories for project(s) associated with this public inbox


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