Jeff Abrahamson on 22 May 2006 15:54:52 -0000


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

Re: [PLUG] mutt and m4


On Mon, May 22, 2006 at 10:51:59AM -0400, Michael C. Toren wrote:
>   [17 lines, 104 words, 824 characters]  Top characters: _teinorl
> 
> On Mon, May 22, 2006 at 10:42:12AM -0400, Jeff Abrahamson wrote:
> > This has made my configuration files much easier to read and understand,
> > although I do have to remember to run make after editing them.
> 
> ...or alias "mutt" to something like "make -C ~/directory && mutt", and
> never think about it again. :-)
> 
> Or perhaps modify your Makefile so that it writes to a filename other
> ~/.muttrc and prints the name of that filename to stdout, then put
> something like "source `make -C ~/directory`" in your ~/.muttrc.

Nice idea.  This works well as the first line of .mutt/muttrc:

    source `cd $HOME/.mutt/ && make 1>&2; echo '/dev/null'`

There's a very slight increase in startup time for mutt.  The
effective "source /dev/null" does nothing, of course.  The side effect
is to rebuild the hooks file.  The redirection of stdout to stderr
causes any make details to be visible without mutt interpreting them.

-- 
 Jeff

 Jeff Abrahamson  <http://jeff.purple.com/>          +1 215/837-2287
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug