* Changing Modes and Headline Closing
@ 2018-03-26 22:00 42 147
2018-04-26 23:34 ` Bastien
2018-04-27 7:36 ` Eric S Fraga
0 siblings, 2 replies; 3+ messages in thread
From: 42 147 @ 2018-03-26 22:00 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I'm editing a large document, mostly text, that is intended for a
website -- thus html is interspersed throughout, though not enough to
justify editing the document as a dedicated .html file.
I only use html-mode if I have to edit a list with 6-7 uls / ols nested
in, mainly to keep track of the position of each li. This is fine, but
when I switch back to org-mode everything collapses back to the
top-level headline. My workaround is to kill-buffer and re-open rather
than M-x org-mode out of html-mode.
Is there a way to switch back to org-mode via M-x org-mode while
preserving the state of the open / closed headlines?
Thanks,
John
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changing Modes and Headline Closing
2018-03-26 22:00 Changing Modes and Headline Closing 42 147
@ 2018-04-26 23:34 ` Bastien
2018-04-27 7:36 ` Eric S Fraga
1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2018-04-26 23:34 UTC (permalink / raw)
To: 42 147; +Cc: emacs-orgmode
Hi 42 147,
42 147 <aeuster@gmail.com> writes:
> Is there a way to switch back to org-mode via M-x org-mode while
> preserving the state of the open / closed headlines?
I added this FAQ to Worg:
* Is my question already a Frequently Asked Questions ?
You can find the answer by asking on the mailing list, but people will
probably direct you here, so it is safer to start by checking this FAQ.
You can check
Can I save/restore the visibility state of an org-mode buffer?
in this FAQ.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Changing Modes and Headline Closing
2018-03-26 22:00 Changing Modes and Headline Closing 42 147
2018-04-26 23:34 ` Bastien
@ 2018-04-27 7:36 ` Eric S Fraga
1 sibling, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2018-04-27 7:36 UTC (permalink / raw)
To: 42 147; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 758 bytes --]
On Tuesday, 27 Mar 2018 at 00:00, 42 147 wrote:
> Hello,
>
> I'm editing a large document, mostly text, that is intended for a
> website -- thus html is interspersed throughout, though not enough to
> justify editing the document as a dedicated .html file.
[...]
> Is there a way to switch back to org-mode via M-x org-mode while
> preserving the state of the open / closed headlines?
Can you not put the HTML within #+begin_export HTML ... #+end_export
blocks and then use org-edit-special (C-c ') to edit the HTML? That
will put the block in HTML mode and leaving the edit buffer (C-c ') will
return you to your org file as it was when you invoked org-edit-special.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-474-g92785f
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-27 7:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-26 22:00 Changing Modes and Headline Closing 42 147
2018-04-26 23:34 ` Bastien
2018-04-27 7:36 ` Eric S Fraga
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).