all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: raman@users.sf.net
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Request: org as minor mode?
Date: Mon, 2 Apr 2007 13:30:51 +0200	[thread overview]
Message-ID: <bee34b562e6d50784b4fea9fb7719c19@science.uva.nl> (raw)
In-Reply-To: <17934.55666.475469.725775@gargle.gargle.HOWL>

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

  parent reply	other threads:[~2007-04-02 11:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-31 21:58 Request: org as minor mode? T. V. Raman
2007-03-31 22:08 ` Denis Bueno
2007-04-02 11:30 ` Carsten Dominik [this message]
2007-04-17  3:57   ` T. V. Raman
  -- strict thread matches above, loose matches on Subject: below --
2007-04-03  6:46 Jost Burkardt
2007-04-03 21:44 ` Mike Newman
2007-04-12  7:44 ` Carsten Dominik

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bee34b562e6d50784b4fea9fb7719c19@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=raman@users.sf.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.