emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: 42 147 <aeuster@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Changing Modes and Headline Closing
Date: Fri, 27 Apr 2018 08:36:57 +0100	[thread overview]
Message-ID: <871sf1rtgm.fsf@gmail.com> (raw)
In-Reply-To: <f3ab025c-a3a1-9d98-37ac-882f4035ecf8@gmail.com> (42's message of "Tue, 27 Mar 2018 00:00:53 +0200")

[-- 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 --]

      parent reply	other threads:[~2018-04-27  7:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=871sf1rtgm.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=aeuster@gmail.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).