diff options
| author | Peter Oliver | 2021-06-09 12:44:32 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-02 13:09:08 +0200 |
| commit | b1b05c828d67930bb3b897fe98e1992db42cf23c (patch) | |
| tree | cf2a4680f85517f4a2912f8af144676f4a40baf8 | |
| parent | 9eadcfdfe6f7b26ba44360db9f828fdbe7a78fe7 (diff) | |
| download | emacs-b1b05c828d67930bb3b897fe98e1992db42cf23c.tar.gz emacs-b1b05c828d67930bb3b897fe98e1992db42cf23c.zip | |
Provide an emacsclient-mail.desktop
We provide both an emacs.desktop and an emacsclient.desktop, so for
consistency let’s do the same with mail.
* etc/emacs-mail.desktop: Extract suggestions for using emacsclient
from comments to create emacsclient-mail.desktop.
* etc/emacsclient-mail.desktop: Send mail using an existing Emacs
rather than starting a new one.
| -rw-r--r-- | etc/NEWS | 1 | ||||
| -rw-r--r-- | etc/emacs-mail.desktop | 14 | ||||
| -rw-r--r-- | etc/emacsclient-mail.desktop | 19 |
3 files changed, 21 insertions, 13 deletions
| @@ -1077,6 +1077,7 @@ Clicking on a 'mailto:' link in other applications will then open | |||
| 1077 | Emacs with headers filled out according to the link, e.g. | 1077 | Emacs with headers filled out according to the link, e.g. |
| 1078 | "mailto:larsi@gnus.org?subject=This+is+a+test". If you prefer | 1078 | "mailto:larsi@gnus.org?subject=This+is+a+test". If you prefer |
| 1079 | emacsclient, use "emacsclient -e '(message-mailto "%u")'" | 1079 | emacsclient, use "emacsclient -e '(message-mailto "%u")'" |
| 1080 | or "emacsclient-mail.desktop". | ||
| 1080 | 1081 | ||
| 1081 | --- | 1082 | --- |
| 1082 | *** Change to default value of 'message-draft-headers' user option. | 1083 | *** Change to default value of 'message-draft-headers' user option. |
diff --git a/etc/emacs-mail.desktop b/etc/emacs-mail.desktop index 251afa100cd..3a96b9ec8c7 100644 --- a/etc/emacs-mail.desktop +++ b/etc/emacs-mail.desktop | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | [Desktop Entry] | 1 | [Desktop Entry] |
| 2 | Categories=Network;Email; | 2 | Categories=Network;Email; |
| 3 | Comment=GNU Emacs is an extensible, customizable text editor - and more | 3 | Comment=GNU Emacs is an extensible, customizable text editor - and more |
| 4 | Exec=emacs -f message-mailto %u | ||
| 4 | Icon=emacs | 5 | Icon=emacs |
| 5 | Name=Emacs (Mail) | 6 | Name=Emacs (Mail) |
| 6 | MimeType=x-scheme-handler/mailto; | 7 | MimeType=x-scheme-handler/mailto; |
| 7 | NoDisplay=false | 8 | NoDisplay=false |
| 8 | Terminal=false | 9 | Terminal=false |
| 9 | Type=Application | 10 | Type=Application |
| 10 | |||
| 11 | Exec=emacs -f message-mailto %u | ||
| 12 | # # If you prefer to use emacsclient, use this instead: | ||
| 13 | # Exec=sh -c 'emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"%u\")"' | ||
| 14 | # Actions=new-window;new-instance; | ||
| 15 | |||
| 16 | # [Desktop Action new-window] | ||
| 17 | # Name=New Window | ||
| 18 | # Exec=emacsclient --alternate-editor= --create-frame --eval '(message-mailto "%u")' | ||
| 19 | |||
| 20 | # [Desktop Action new-instance] | ||
| 21 | # Name=New Instance | ||
| 22 | # Exec=emacs -f message-mailto %u | ||
diff --git a/etc/emacsclient-mail.desktop b/etc/emacsclient-mail.desktop new file mode 100644 index 00000000000..4df79ed3002 --- /dev/null +++ b/etc/emacsclient-mail.desktop | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Categories=Network;Email; | ||
| 3 | Comment=GNU Emacs is an extensible, customizable text editor - and more | ||
| 4 | Exec=sh -c 'exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"%u\")"' | ||
| 5 | Icon=emacs | ||
| 6 | Name=Emacs (Mail, Client) | ||
| 7 | MimeType=x-scheme-handler/mailto; | ||
| 8 | NoDisplay=false | ||
| 9 | Terminal=false | ||
| 10 | Type=Application | ||
| 11 | Actions=new-window;new-instance; | ||
| 12 | |||
| 13 | [Desktop Action new-window] | ||
| 14 | Name=New Window | ||
| 15 | Exec=emacsclient --alternate-editor= --create-frame --eval '(message-mailto "%u")' | ||
| 16 | |||
| 17 | [Desktop Action new-instance] | ||
| 18 | Name=New Instance | ||
| 19 | Exec=emacs -f message-mailto %u | ||