From: areiner at tph.tuwien.ac.at (Albert REINER)
Subject: [Howm-eng 114] How to bind M-RET to insert { } in howm buffers?
Date: Sat, 10 Sep 2016 17:46:28 +0200 [thread overview]
Message-ID: <20160910154628.GA9883@qohelet.reiner> (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.
next reply other threads:[~2016-09-10 15:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-10 15:46 areiner [this message]
2016-09-10 17:32 ` [Howm-eng 115] " khi
2016-09-11 12:54 ` [Howm-eng 116] " areiner
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=20160910154628.GA9883@qohelet.reiner \
--to=howm-eng@lists.osdn.me \
/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.
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).