From: henry atts <snd@online.de>
To: emacs-orgmode@gnu.org
Subject: Re: cannot open org files without heading
Date: Mon, 10 Jun 2013 12:45:35 +0200 [thread overview]
Message-ID: <87zjuykzw0.fsf@bye.fritz.box> (raw)
In-Reply-To: 87y5ajequw.fsf@bye.fritz.box
henry atts <snd@online.de> writes:
> Let's say I have an org file without any heading. When I want to open it
> in emacs I have to try twice. First time nothing happens and emacs tells
> me ``before first heading''. It only will be opened at the second try.
> Okay, org files do need a heading and that is the way emacs urges me to
> insert one at last.
> I can live with it and try it twice. But if I want to open an org file
> without heading on the commandline with emacsclient (or if I want to
> create a new one this way) like: `emacsclient -t new.org' then nothing
> at all happens and I have to kill the unfinished process with CTRL-C.
>
> I afterwards have to reset the terminal because it `looks weird' (line
> breaks and spacings are gone) which I find rather inconvenient.
The culprit is:
(add-hook 'org-mode-hook 'org-tree-slide-mode)
(add-hook 'find-file-hook
'(lambda () (when (eq major-mode 'org-mode)
(org-tree-slide-mode))))
henry
--
web: http://literaturlatenight.de
jabberID: atting@jabber.at
prev parent reply other threads:[~2013-06-10 10:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-09 6:32 cannot open org files without heading henry atts
2013-06-10 10:45 ` henry atts [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=87zjuykzw0.fsf@bye.fritz.box \
--to=snd@online.de \
--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).