help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacsclient command line use existing client


From: Charles Philip Chan
Subject: Re: emacsclient command line use existing client
Date: Fri, 19 Sep 2014 22:14:41 -0400
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

On 19 Sep 2014, address@hidden wrote:

> << full contents of email.so >>
> -------------------------------
> #!/bin/sh
> # emacs-mailto-handler
>
> mailto=$1
> mailto="mailto:${mailto#mailto:}";
> mailto=$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g')
> emacs_server="server"
> elisp_expr="(mailto-compose-mail \"$mailto\")"
>
> /usr/bin/emacsclient -a "" -c -n -s "$emacs_server" --eval
>       "$elisp_expr" \ '(set-window-dedicated-p (selected-window) t)'

This is the small script that I have been using with Firefox's mailto
handler for years with no problems:

Attachment: mozmail.sh
Description: Mozmail

Charles

-- 
"World domination.  Fast"
(By Linus Torvalds)

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]