[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Filtering mails with inc; passing arguments to Editor
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] Filtering mails with inc; passing arguments to Editor |
Date: |
Sun, 24 Jul 2011 11:18:30 +0100 |
Hi Mikhail,
Joel Reicher wrote:
> On Feb 3 2011, Mikhail wrote:
> > Is there any other solution than creating #!/bin/sh script and
> > putting it in $PATH?
>
> I don't think so, no. MH expects the profile entry to be the name of
> an executable; it is interpreting your "command plus args" line as a
> single name with whitespaces in it.
I use this.
$ cat ~/.vim/filetype.vim
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufRead,BufNewFile /home/ralph/mail/drafts/* setfiletype mail
au! BufRead,BufNewFile /tmp/ci.*.template setfiletype diff
augroup END
$
Cheers, Ralph.