<<< Date Index >>>     <<< Thread Index >>>

Re: x-editor or not



* Nikolai Prokoschenko <nikolai@xxxxxxxxxxxxxxx> [2004-03-15 20:49:29 +0100]:

> Hello!
> 
> Is there any way to teach mutt to use gvim on localhost display and vim in
> the remote session without fiddling with the EDITOR environment variable?
I've written a small shellscript which checks the existence of 
the DISPLAY variable an then starts the right editor. 

#!/bin/bash
if [ "$DISPLAY" ]; then
    xedit $*
else
    mcedit $*
fi

You can enable this by adding such an line to your .muttrc:

set editor = "/usr/bin/muttedit"


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT services

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@xxxxxxxx
  cellphone: +49 174 7066481
---------------------------------------------------------------------
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
---------------------------------------------------------------------