public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
* [Howm-eng 114]  How to bind M-RET to insert { } in howm buffers?
@ 2016-09-10 15:46 areiner
  2016-09-10 17:32 ` [Howm-eng 115] " khi
  0 siblings, 1 reply; 3+ messages in thread
From: areiner @ 2016-09-10 15:46 UTC (permalink / raw)


Hi,

hoping that this list is still functional, here is something that I
have been longing for for quite some time; but, alas!, my Emacs skills
are insufficient to implement this myself.

What I would like is to make M-RET, inside howm buffers, insert a new
item in a to do list, i.e. insert a newline, followed by "{ } "
indented by the same amount as any preceding item.  (This would be
analogous to, e.g., various TeX modes that start a new \item.)

E.g., given the following buffer contents:

________________________________________________________________

foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar
baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo
bar baz foo bar baz AAA foo bar baz foo bar baz BBB

{ } foo CCC bar DDD
{ } baz
    { } foo EEE bar FFF

GGG
________________________________________________________________

Hitting M-RET should have this effect:

- on AAA or BBB or CCC or DDD: insert "\n{ } " (since no indentation
  is implied by previous lines);

- on EEE or FFF: insert "\n    { } " (since we are on an item indented
  by four spaces already)

While this is not in any way urgent, any help would be very much
appreciated.

(BTW, I have been using Howm heavily for about a year, and it has
become very important to me.  Thank you so much for writing and
maintaining Howm!)

Regards,

Albert.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-11 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-10 15:46 [Howm-eng 114] How to bind M-RET to insert { } in howm buffers? areiner
2016-09-10 17:32 ` [Howm-eng 115] " khi
2016-09-11 12:54   ` [Howm-eng 116] " areiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).