From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: emails written in Org Mode Date: Thu, 10 Jul 2014 15:27:24 +0200 Message-ID: <87ha2p2vk3.fsf@gmail.com> References: <87zjgjvuny.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5EO2-0002jI-ME for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 09:27:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5ENx-0006qD-8d for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 09:27:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:35172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5ENx-0006q8-1y for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 09:27:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X5ENr-0005eb-KE for emacs-orgmode@gnu.org; Thu, 10 Jul 2014 15:27:35 +0200 Received: from g231109197.adsl.alicedsl.de ([92.231.109.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jul 2014 15:27:35 +0200 Received: from tjolitz by g231109197.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jul 2014 15:27:35 +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 Alan Schmitt writes: Hello, > On 2014-07-09 09:49, Thorsten Jolitz 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