From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Org-mode outside Org-mode Date: Thu, 25 Apr 2013 19:33:38 +0200 Message-ID: <877gjqtszx.fsf@gmail.com> References: <87txoc7jvr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVQ3M-0006z3-LO for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 13:33:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVQ3F-0002to-Hs for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 13:33:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:39028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVQ3F-0002tX-CC for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 13:33:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UVQ3D-0006ik-Um for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 19:33:43 +0200 Received: from g231234041.adsl.alicedsl.de ([92.231.234.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Apr 2013 19:33:43 +0200 Received: from tjolitz by g231234041.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Apr 2013 19:33:43 +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 Alexander Vorobiev writes: Hi Alexander, > A while back I wrote a macro (based on the advice inĀ  > http://stackoverflow.com/a/2494384/973603) which allows to activate > minor mode bindings when a condition is true and fall back to previous > bindings otherwise: I just pushed a new version of outshine.el on github (and updated the Org-mode outside Org-mode article on Worg). I use a modified version of your macro to bind TAB, M- and M-. I still 'take over' BACKTAB and M- and M- in outshine.el, since the associated functions are usefull anywhere in an outshine buffer. Thanks for the tip and the code! -- cheers, Thorsten