From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jost Burkardt Subject: Re: Request: org as minor mode? Date: Tue, 03 Apr 2007 08:46:21 +0200 Message-ID: <871wj2uf9e.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYcpt-0001IZ-2t for emacs-orgmode@gnu.org; Tue, 03 Apr 2007 02:49:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYcpr-0001IN-K1 for emacs-orgmode@gnu.org; Tue, 03 Apr 2007 02:49:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYcpr-0001IK-GK for emacs-orgmode@gnu.org; Tue, 03 Apr 2007 02:49:43 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYcmj-000483-Ib for emacs-orgmode@gnu.org; Tue, 03 Apr 2007 02:46:29 -0400 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id A5ECC6F19A60 for ; Tue, 3 Apr 2007 08:46:22 +0200 (CEST) Received: from [84.173.194.230] (helo=wodka) by smtp06.web.de with esmtp (WEB.DE 4.107 #114) id 1HYcmc-0006oK-00 for emacs-orgmode@gnu.org; Tue, 03 Apr 2007 08:46:22 +0200 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: emacs-orgmode@gnu.org ... forgot to include emacs-orgmode list on CC Hi Dominik, reading this discussion, I just want to throw in something, which is quite a while on my mind: What about deriving org-mode from the minor-mode outliner "allout-mode", which provides outlining capabilities for non-text modes (plus some goodies like encryption of subtrees). Allout manages the key-binding problem with a standard prefix `C-c ' to all keys plus some hotkeys for quick movement, when you on a heading. That sounds quite like, what you have explained for orgtbl-mode. I'd really like to be able to manage my task directly within my source files (and have the great tagging available!!!). An other use-case would be managing task within in a emacs-muse file, like planner-mode does. I can imagine, that this would be a major effort, esp. how to handle keywords, like SCHEDULED, HEADLINE,... (within comments?), but as I said, I would really like your opinion on this. Jost Carsten Dominik writes: > Hi Raman > > This is a complex question. > > Of course one could define a minor mode that contains some of the > org-mode commands. The main problem is key bindings. Major modes > define their own keys, and I guess you don't want to have the minor > mode override bindings from the major mode, except under special > circumstances. > > Orgtbl-mode deals with this challange in a special way. All the keys > that are acting on tables are bound to a special function. That > function first determines if the cursor is inside a table. If yes, > the Org-mode table function is executed. If not, the minor mode is > deactivated for a moment and the "other" binding of that same key, > most likely set by the major mode or another minor mode will be > executed. > > I believe you would have to formulate your request much more narrowly: > What Org-mode functionality would you like to have available in other > modes? How should the minor mode decide if which function of a key to > call. For example, you could say you mostly want the structure > editing commands, when the cursor is on a headline or a plain list > item. > But others might want the ability to put time stamps, or whatever. > > So in order to realize such a minor mode, I would need a clear > definition. > > - Carsten > > On Mar 31, 2007, at 23:58, T. V. Raman wrote: > >> 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 Dominik > Sterrenkundig Instituut "Anton Pannekoek" > Universiteit van Amsterdam > Kruislaan 403 > NL-1098SJ Amsterdam > phone: +31 20 525 7477 > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode