From mboxrd@z Thu Jan 1 00:00:00 1970 From: "T. V. Raman" Subject: Re: Request: org as minor mode? Date: Mon, 16 Apr 2007 20:57:09 -0700 Message-ID: <17956.17813.774991.371388@gargle.gargle.HOWL> References: <17934.55666.475469.725775@gargle.gargle.HOWL> Reply-To: raman@users.sf.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HdetH-0006eJ-5N for emacs-orgmode@gnu.org; Tue, 17 Apr 2007 00:02:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HdetG-0006dF-Gp for emacs-orgmode@gnu.org; Tue, 17 Apr 2007 00:02:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HdetG-0006d5-Cs for emacs-orgmode@gnu.org; Tue, 17 Apr 2007 00:02:02 -0400 Received: from rwcrmhc14.comcast.net ([204.127.192.84]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HdeoZ-0002at-Lb for emacs-orgmode@gnu.org; Mon, 16 Apr 2007 23:57:11 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dominik@science.uva.nl Cc: raman@users.sf.net, emacs-orgmode@gnu.org Hi, so to narrow down the definition, I'm primarily looking for the ability to edit and manipulate structure -- which is why I picture it as an extension/enhancement to the existing outline-minor-mode functionality in emacs. In some sense, when you implemented org, you built on top of outline-mode; one way to achieve what I'm asking for might be to now take those parts of org that are structure-oriented and successful and move them back into outline-mode. The other possibility -- --- let's push the issue of key bindings on the stack for a minute --- would be to implement the minor mode, and provide a org-mode-prefix that users can bind to a key. For instance I might bind this to hyper-o in my environment. >>>>> "Carsten" == Carsten Dominik writes: Carsten> Hi Raman This is a complex question. Carsten> Carsten> Of course one could define a minor mode that Carsten> contains some of the org-mode commands. The main Carsten> problem is key bindings. Major modes define their Carsten> own keys, and I guess you don't want to have the Carsten> minor mode override bindings from the major mode, Carsten> except under special circumstances. Carsten> Carsten> Orgtbl-mode deals with this challange in a special Carsten> way. All the keys that are acting on tables are Carsten> bound to a special function. That function first Carsten> determines if the cursor is inside a table. If yes, Carsten> the Org-mode table function is executed. If not, Carsten> the minor mode is deactivated for a moment and the Carsten> "other" binding of that same key, most likely set by Carsten> the major mode or another minor mode will be Carsten> executed. Carsten> Carsten> I believe you would have to formulate your request Carsten> much more narrowly: What Org-mode functionality Carsten> would you like to have available in other modes? Carsten> How should the minor mode decide if which function Carsten> of a key to call. For example, you could say you Carsten> mostly want the structure editing commands, when the Carsten> cursor is on a headline or a plain list item. But Carsten> others might want the ability to put time stamps, or Carsten> whatever. Carsten> Carsten> So in order to realize such a minor mode, I would Carsten> need a clear definition. Carsten> Carsten> - Carsten Carsten> Carsten> On Mar 31, 2007, at 23:58, T. V. Raman wrote: Carsten> >> I've now come to rely heavily on org-mode for too many >> things -- this is of course good. >> >> But this is also means that increasingly, I'd like to use >> org-mode as a minor mode in conjunction with other major >> modes. Is this possible? >> >> org lets you use things like orgtbl or org-cdlatex within >> org-mode; what I'd like to see is org-mode itself be >> usable as a minor mode --- in a manner similar to >> outline-minor-mode. >> >> I think this would make things like email composition >> really convenient -- org-mode is as yet the most >> convenient means I've found in emacs to write ordered and >> bulleted lists with a minimal amount of fuss. Thanks, >> --Raman >> >> -- >> Best Regards, --raman >> >> >> Email: raman@users.sf.net WWW: >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >> tv.raman.tv@gmail.com PGP: >> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >> tv+raman IRC: irc://irc.freenode.net/#emacs >> >> >> _______________________________________________ >> Emacs-orgmode mailing list Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> Carsten> -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Carsten> Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Carsten> Amsterdam phone: +31 20 525 7477 Carsten> Carsten> Carsten> Carsten> _______________________________________________ Carsten> Emacs-orgmode mailing list Emacs-orgmode@gnu.org Carsten> http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs