emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: emails written in Org Mode
Date: Thu, 10 Jul 2014 15:27:24 +0200	[thread overview]
Message-ID: <87ha2p2vk3.fsf@gmail.com> (raw)
In-Reply-To: m2k37lmkw8.fsf@top-wifi.irisa.fr

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

Hello,

> On 2014-07-09 09:49, Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Yes, I use Gnus and thus write my mails in message-mode. 
>>
>> My setup is the standard outshine.el + outorg.el setup, since it works
>> out-of-the-box with message-mode, given you follow the installation
>> description. 
>
> I've given this a try, and it's not obvious how to make it work. This is
> what I did:
>
> - installed outorg through MELPA

You *need* outshine too, navi-mode is a nice addition. The 3 libs belong
together somehow, outshine is the core library.

> - tried on an email, as no outorg function was loaded, I evaluated
>  '(require 'outorg')'

since navi-mode requires outorg, and outshine has a soft-dependency to
outorg, I don't have that explicitly in my init.el.

> - upon calling the 'outorg-edit-as-org' function I got an error about
>   a missing outshine variable (something about comments, IIRC)
> - I installed outshine, and restarted emacs to make sure the autoloads
>   were loaded
> - tried again on some email, and still there was no outorg proposed, so
>   I required it and outshine as well
> - I then got the following error
>
> Debugger entered--Lisp error: (error "before first heading")
>   signal(error ("before first heading"))
>   error("before first heading")
>   outline-back-to-heading(INVISIBLE-OK)
>   outorg-copy-and-convert()
>   outorg-edit-as-org(nil)
>
> My questions are:
> - Is this a bug?

I hope (and think) not.

Looks like the hooks are not set. Here (again) my configuration from
init.el: 

,----
| (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode)
| (add-hook 'message-mode-hook 'outline-minor-mode)
| ;; more hooks for other major-modes ...
|
| ;; outorg                         ; <= required indirectly
| ;; (require 'outorg)
| 
| ;; outshine
| (require 'outshine)
| (add-hook 'outline-minor-mode-hook
|           'outshine-hook-function) ; <= important!
| 
| (setq outshine-use-speed-commands t)
| 
| ;; navi-mode                       ; <= optional
| (require 'navi-mode)
| 
| ;; poporg                          ; <= optional
| (require 'poporg)
`----

You need to set this too in your init.el (*before* outline is loaded):

,----
| (defvar outline-minor-mode-prefix "\M-#")
`----

Restarting Emacs once after installation is a good idea. Then it should
work, let me know if you still have troubles.

> - does outorg require outshine to work? If so, it may be good to mark
> the latter as a dependency of the former.

Yes. 
With "mark the latter as a dependency of the former" you mean in the
MELPA package description?

> - there is no installation instructions on the package description on
> MELPA. Where can I find the "installation description" referred to
> above?

,----
| https://github.com/tj64/outshine
| https://github.com/tj64/outorg
| https://github.com/tj64/navi
`----

or  

,----
| http://orgmode.org/worg/org-tutorials/org-outside-org.html
`----

but the excerpt above from my init.el should do the job.

-- 
cheers,
Thorsten

  reply	other threads:[~2014-07-10 13:27 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-08 18:28 emails written in Org Mode Ken Mankoff
2014-07-09  5:06 ` Joseph Vidal-Rosset
     [not found]   ` <CAAjq1me3p_QPNf_UyXsbO2A4B7t_vVAAi-nL-k5wNsq0AU2J7w@mail.gmail.com>
2014-07-11  6:48     ` Joseph Vidal-Rosset
2014-07-09  7:49 ` Thorsten Jolitz
2014-07-10 12:57   ` Alan Schmitt
2014-07-10 13:27     ` Thorsten Jolitz [this message]
2014-07-11  9:32       ` Alan Schmitt
2014-07-09 19:14 ` John Kitchin
2014-07-09 20:03   ` Nick Dokos
2014-07-09 20:14     ` Ken Mankoff
2014-07-10  8:28       ` Thorsten Jolitz
2014-07-10 10:41         ` Ken Mankoff
2014-07-10 11:29           ` Thorsten Jolitz
2014-07-09 22:33   ` Eric Abrahamsen
2014-07-10  0:33   ` Thorsten Jolitz
2014-07-10 21:15   ` Esben Stien
2014-07-14  1:05   ` Esben Stien
2014-07-14 13:34     ` Esben Stien
2014-07-14 22:49       ` John Kitchin
2014-07-15  0:41         ` Eric Abrahamsen
2014-07-15  0:57           ` Thorsten Jolitz
2014-07-15  1:52             ` Eric Abrahamsen
2014-07-15 14:11             ` Alan Schmitt
2014-07-15 14:16               ` Joseph Vidal-Rosset
2014-07-16  3:03                 ` Eric Abrahamsen
2014-07-16 17:02                   ` Joseph Vidal-Rosset
2014-07-16  3:08                 ` Eric Abrahamsen
2014-07-09 20:02 ` Noorul Islam K M
2014-07-10  0:44 ` Thorsten Jolitz

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=87ha2p2vk3.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).