On Sat, Jan 12, 2013 at 12:25:09PM +0100, Igor Sosa Mayor wrote:
> Hi,
> 
> I'm using emacs with mutt with 
> set editor="emacsclient"
> 
> Is there a way to tell emacs from which folder I'm writing/replying? I'm
> affraid this is not possible, but maybe...
> 
> any ideas?
> 

You could try the -e (--eval) option to change the default-directory.
For example you could use this function:


  cd is an interactive compiled Lisp function in `files.el'.
  
  (cd DIR)
  
  Make DIR become the current buffer's default directory.
  If your environment includes a `CDPATH' variable, try each one of
  that list of directories (separated by occurrences of
  `path-separator') when resolving a relative directory name.
  The path separator is colon in GNU and GNU-like systems.
  

Please note that if you put this in a shell script, you would need to
use the quoting correct since parentheses are special characters in
every shell I'm aware of.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

Reply via email to