TransWikia.com

hideshowvis text shown in Org mode source code

Emacs Asked on December 1, 2020

I am using in Org-mode to document inherited Java code.
Here is shown an enum:

enter image description here

However, when I export to HTML, the document is rendered like this:
enter image description here

Which incorrectly shows a *hideshowvis* text.
I suspect something might be working wrong between hideshow minor mode and Org-mode.

Anyone has deal with this issue?
Regards.

One Answer

Just stumbled upon this. It depends where/how you enable the hideshowvis-minor-mode. In my case I had something like

(use-package hideshowvis
  ;; https://www.emacswiki.org/emacs/hideshowvis.el
  :load-path "elisp/"
  :hook (prog-mode . hideshowvis-minor-mode))

So, to export correctly I just "disable" the prog-mode-hook and export like this

(let ((prog-mode-hook nil))
  (org-html-export-to-html))

You can easily define a function to call

(defun my-export-to-html ()
  (interactive)
  (let ((prog-mode-hook nil))
    (org-html-export-to-html)))

Answered by actondev on December 1, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP