emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: bug? in orgstruct-mode


From: Carsten Dominik
Subject: Re: [Orgmode] Re: bug? in orgstruct-mode
Date: Thu, 26 Feb 2009 21:19:53 +0100

Hi Austin,

On Feb 26, 2009, at 5:57 AM, Austin Frank wrote:

On Sun, Feb 22 2009, Carsten Dominik wrote:

yes, this is something I have been missing myself.

Glad it wasn't just me.  I feel guilty if I'm the only one requesting
the feature.  Now that you've implemented it, are you using
orgstruct++-mode?

I only added the checking for plain list item context newly to
orgstruct++-mode.  The rest was there before, largely
undocumented, I believe.

And yes, I am using it a lot, like you in magit log mode for example.

orgstruct-mode I use in programming modes when I write docstrings etc,
but in any text-like mode, I would also prefer the ++ version.

- Carsten



orgstruct-mode is a mode that steals away bindings from the major mode
and overrules them in certain contexts.  In general, it does make
sense to keep the regions where this applies small, so that the normal
functions bound to the same keys can do there thing everywhere else.

Maybe it makes sense for people who still cling to the idea that there
are useful modes outside of org-mode ;)

You are describing here a case, where you actually never want to use
the original function of that key M-RET, right?

Yes, I almost never want to use `message-newline-and-reformat'.

(defun org-run-insert-heading ()
 (interactive)
 (run-like-in-org-mode 'org-insert-heading))

Did not know about `run-like-in-org-mode'.  Very cool.

What I have now done as well is to extend orgstruct++-mode so that it
will do what you ask for.  You neet to pull the git version for this
change.

I use this full time in text-based modes now. It's especially great for
composing emails (message-mode) and editing commit messages
(magit-log-edit-mode).

Thanks for adding this feature.  I understand why it can't be the
default, but I would encourage folks to try it.  It works really well
for me.

Have a good one,
/au

--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]