From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atts Subject: Re: cannot open org files without heading Date: Mon, 10 Jun 2013 12:45:35 +0200 Message-ID: <87zjuykzw0.fsf@bye.fritz.box> References: <87y5ajequw.fsf@bye.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ulzcp-0005lI-AI for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 06:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ulzco-0003Os-2O for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 06:46:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:48851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ulzcn-0003Ol-S8 for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 06:46:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ulzcg-0007fR-96 for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 12:46:50 +0200 Received: from port-92-195-46-208.dynamic.qsc.de ([92.195.46.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 12:46:50 +0200 Received: from snd by port-92-195-46-208.dynamic.qsc.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 12:46:50 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org henry atts 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