From: areiner at tph.tuwien.ac.at (Albert REINER)
Subject: [Howm-eng 116] Re: How to bind M-RET to insert { } in howm buffers?
Date: Sun, 11 Sep 2016 14:54:10 +0200 [thread overview]
Message-ID: <20160911125410.GA4205@qohelet.reiner> (raw)
In-Reply-To: <87twdn7jah.wl@id.domain>
On Sun, Sep 11, 2016 at 02:32:06AM +0900, khi at users.sourceforge.jp wrote:
> Would you try this `my-newline-with-todo'?
> http://howm.osdn.jp/cgi-bin/hiki/hiki.cgi?Comment
Thanks! This was enough to get me started; I had to make some minor
changes:
- change the pattern "^[[:blank:]]*{ } " to "^[[:blank:]]*{ }" (remove
trailing space), or otherwise the first item would have only one,
the second one always two spaces after "{ }".
- binding the key does not work with [(meta return)] but only with
"\M-\r" - presumably this has to do with my emacs version: "GNU
Emacs 24.4.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2) of 2015-01-12
on babin, modified by Debian"
- and, of course, the function to bind is not, as on the wiki,
'my-erase-header but 'my-newline-with-todo.
This does, it seems, exactly what I wanted it to do, although at the
moment I don't understand why it works even for multi-line to do
entries. Thanks a lot!
> howm.el is still alive because I'm using it every day by myself :)
Indeed, it is an incredibly useful tool! It took me some time to get
used to it, but now I certainly would not want to miss it any more!
Thanks, and best regards,
Albert.
prev parent reply other threads:[~2016-09-11 12:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-10 15:46 [Howm-eng 114] " areiner
2016-09-10 17:32 ` [Howm-eng 115] " khi
2016-09-11 12:54 ` areiner [this message]
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=20160911125410.GA4205@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).