Excerpts from Tomas Pospisek ML's message of Tue Nov 04 14:28:35 -0700 2008:
>
> On 11/4/2008, "Nicolas Pouillard" <[EMAIL PROTECTED]> wrote:
>
> >Excerpts from John Bent's message of Tue Nov 04 18:18:52 +0100 2008:
> >> Excerpts from Stephen Patterson's message of Tue Nov 04 09:25:42 -0700
> >> 2008:
> >> > On 04 Nov 08, Steve Goldman ([EMAIL PROTECTED]) wrote:
> >> > >
> >> > > I understand your religious fanaticism about top posting, etc. I'll
> >> > > buy into it if you can tell me how to make sup make emacs position my
> >> > > cursor in the correct place when I hit compose or reply. I want to
> >> > > hit 'c' or 'r' and immediately begin typing, instead of navigate
> >> > > around the buffer and dodge quoted text and a hundred signatures.
> >> >
> >> > Not sure how you set the editor for sup, but "emacs +8" will start the
> >> > cursor on line 8. Mail clients (mutt) normally put the cursor at the top
> >> > though.
> >> >
> >> To set the editor for sup, just edit the :editor: line in
> >> .sup/config.yaml.
> >>
> >> vim has the same +N option but for email editing in sup I prefer
> >> '+/^\s*\n' which sets the initial cursor position to the first blank
> >> line (i.e. following the email headers).
> >
> >Cool, thanks for the tip!
>
> Sounds like a reasonable default to me. (Sorry for not putting this into
> a Git repo William. In case I get around hacking larger pieces of Sup
> I'll do that I promise):
>
You don't want the preceding -c. The tics (') are to protect the
slashes and wildcards from the shell. This is what you want:
'/usr/bin/vim -f +/^\s*\n-c "setlocal spell spelllang=en_us" -c "set
filetype=mail" '
I also like passing -X to make it go a little faster in a terminal....
John
> --- sup.rb.orig 2008-11-04 22:19:35.000000000 +0100
> +++ sup.rb 2008-11-04 22:23:45.000000000 +0100
> @@ -212,7 +212,8 @@
> :signature => File.join(ENV["HOME"], ".signature")
> }
> },
> - :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell
> spelllang=en_us' -c 'set filetype=mail'",
> + :editor => ENV["EDITOR"] ||
> + '/usr/bin/vim -f -c "setlocal spell spelllang=en_us"
> -c "set filetype=mail" -c \'+/^\s*\n\'',
> :thread_by_subject => false,
> :edit_signature => false,
> :ask_for_cc => true,
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk