org-view-mode icon indicating copy to clipboard operation
org-view-mode copied to clipboard

Feature Request: hide emphasis markers

Open molok opened this issue 4 years ago • 3 comments

this is pretty easy to do since you just have to toggle org-hide-emphasis-markers

molok avatar Feb 16 '22 21:02 molok

Yes I know. I left on purpose org-hide-emphasis-markers, org-toggle-pretty-entities and org-toggle-inline-images to users. Since those are already implemented in org-mode, I thought that users already have their opinion if they prefer those on or off, so I left those untouched.

If user prefer, toggling those could be easily added with a function or lambda to org-view-mode-hook.

amno1 avatar Feb 16 '22 22:02 amno1

I agree with @molok : more "agressivity" would be welcome. I, as user, wouldn't mind if I would have to customize it, to change some of your choices (but I would like to know your reach and preferred choices).

Ypot avatar Feb 18 '22 21:02 Ypot

The problem is that each of those features means I have to add a user option to toggle it, to save the old value into another variable and to restore the old value upon exit as as to document it. Org-mode already provides all of that, so why not use what is already in org-mode?

I am not sure about it, it feels like adding an extra layer of options for things that already are customizable options. Org-hide-emphasis-markers is typically set in with-eval-after-load 'org-mode (or somewhere in use-package for most of ppl I guess) along with some other org-mode options. Auto displaying images can be really slow in case of big images or many images, so it is probably better left per buffer. Anyway, if you would like to have this auto on, and to turn it off per-buffer, you can do this somewhere in your init file:

(defun org-view-prettify-more ()
  (setq org-hide-emphasis-markers t)
  (unless org-inline-image-overlays
    (org-toggle-inline-images))
  (unless org-pretty-entities
    (org-toggle-pretty-entities)))

(add-hook 'org-view-mode-hook #'org-view-prettify-more nil t)

amno1 avatar Feb 18 '22 21:02 amno1