Use Emacs as a mailto: handler

master
Pierre Neidhardt 2019-03-20 11:14:39 +01:00
parent 7051afb07a
commit 36b54d9a2e
3 changed files with 10 additions and 0 deletions

3
.local/bin/emacs-mail Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
emacsclient -c --eval "(browse-url-mail \"$@\")"

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Emacs Mail
Comment=E-Mail client
Exec=emacs-mail %u
MimeType=x-scheme-handler/mailto;
Type=Application

View File

@ -19,6 +19,7 @@ text/html=$BROWSER.desktop
application/pdf=zathura.desktop
x-scheme-handler/http=$BROWSER.desktop
x-scheme-handler/https=$BROWSER.desktop
x-scheme-handler/mailto=emacs-mail.desktop
EOF
## X resources for xterm.