blob: b05446acc640fd2a6b68ecc0f95cb06f9663ccf2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
# emacs-mailto-handler
mailto=$1
mailto="mailto:${mailto#mailto:}"
mailto=$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g')
elisp_expr="(mailto-compose-mail \"$mailto\")"
emacsclient -a "" -c -n --eval "$elisp_expr" \
'(set-window-dedicated-p (selected-window) t)'
|