Re: [O] org-tree-slide annoyance
Carsten Dominik writes: > On 15.7.2013, at 10:33, henry atts wrote: > >> I use org-tree-slide-mode by default with >> >> (add-hook 'org-mode-hook 'org-tree-slide-mode) >> >> This works kind of acceptable minus some minor annoyances. But one thing >> makes it nearly unusuable. tree-slide rigidly expects at least one >> header. So if I open an org file without heading, or if I create a new >> one, I get an error message: >> >> File mode specification error: (error "before first heading") >> >> If I include a setup file with `#+SETUPFILE:', which of course has no >> headings in it, org-tree-slide stops working at all. > > > Hi Henry, > > you could wrap turning on of the mode into a function > that checks if there is a node, and if not, just add one. > > - Carsten Okay, but on the one hand this doesn't solve the problem with `SETUPFILE'. On the other hand what if I want an org file without any heading on purpose? Or otherwise asked is a file a `real' org file only if it has headings in it? You might say if you want some features of orgmode _and_ an org file without heading you can always use, say, text-mode and load orgstruct as a minor mode. Which does not solve the problem as well because with the org-tree-mode hook for orgmode it shows some strange behaviour equally. I like org-tree-mode but I think it does not play well with orgmode in some cases. And as far as I see it even is not in contrib. henry -- web: http://literaturlatenight.de jabberID: att...@jabber.at
[O] org-tree-slide annoyance
I use org-tree-slide-mode by default with (add-hook 'org-mode-hook 'org-tree-slide-mode) This works kind of acceptable minus some minor annoyances. But one thing makes it nearly unusuable. tree-slide rigidly expects at least one header. So if I open an org file without heading, or if I create a new one, I get an error message: File mode specification error: (error "before first heading") If I include a setup file with `#+SETUPFILE:', which of course has no headings in it, org-tree-slide stops working at all. henry -- web: http://literaturlatenight.de jabberID: att...@jabber.at
Re: [O] cannot open org files without heading
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: att...@jabber.at
[O] cannot open org files without heading
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. henry -- web: http://literaturlatenight.de