From mboxrd@z Thu Jan 1 00:00:00 1970 From: areiner at tph.tuwien.ac.at (Albert REINER) Date: Sun, 11 Sep 2016 14:54:10 +0200 Subject: [Howm-eng 116] Re: How to bind M-RET to insert { } in howm buffers? In-Reply-To: <87twdn7jah.wl@id.domain> References: <20160910154628.GA9883@qohelet.reiner> <87twdn7jah.wl@id.domain> Message-ID: <20160911125410.GA4205@qohelet.reiner> 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.