From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to create non-inheritable properties?
Date: Sun, 08 Jun 2014 23:24:55 +0200 [thread overview]
Message-ID: <87a99nccwo.fsf@gmail.com> (raw)
In-Reply-To: CAAjq1mfATOgH274UktwToGesS+TGZxd4L=wptq+U_7kRP4wOAQ@mail.gmail.com
Grant Rettke <gcr@wisdomandwonder.com> writes:
> Hi,
>
> My org file has a lot of text in it. It really needs to be in the same
> file though, so it is a big file.
>
> When I org-babel-tangle, I would like to speed it up as it takes 8 minutes.
8 minutes? wow ...
when I convert my former big init.el with 7272 lines to org-mode with
,-----------------------
| M-x outorg-edit-as-org
`-----------------------
like this
,------------------------------------------
| (benchmark-run (outorg-edit-as-org '(4)))
`------------------------------------------
the result is
,-----------------------------------
| (3.551239904 8 0.7361492030000001)
`-----------------------------------
i.e. 4 seconds.
Converting it back to emacs-lisp-mode with
,---------------------------------------------
| (benchmark-run (outorg-copy-edits-and-exit))
`---------------------------------------------
takes
,------------------------------------
| (0.107002176 1 0.09775636400000032)
`------------------------------------
i.e. 0.1 sec.
I don't know *how* big your file is, but instead of waiting 8 min for
tangling you could as well install outshine.el and outorg.el and then
use
,-----------------------------------
| M-: outorg-convert-org-to-outshine
`-----------------------------------
to convert your org-file to an (org-style) structured emacs-lisp
file. Then you don't need any tangling anymore since you are in
emacs-lisp-mode anyway, and whenever you want to edit (comment-)text you
use outorg to temporarily convert the subtree or the whole buffer to
org-mode for editing.
--
cheers,
Thorsten
next prev parent reply other threads:[~2014-06-08 21:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-08 1:15 How to create non-inheritable properties? Grant Rettke
2014-06-08 21:24 ` Thorsten Jolitz [this message]
2014-06-08 21:45 ` Charles Berry
2014-06-09 0:12 ` Grant Rettke
2014-06-09 0:08 ` Grant Rettke
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=87a99nccwo.fsf@gmail.com \
--to=tjolitz@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).