development:emacs:gnus
Table of Contents
Gnus
Links
Mailto
I use Gnus for reading/writing e-mails. To open an Emacs mail buffer automatically, when clicking a HTML mailto link the following shell script might be useful:
#!/bin/sh # Emacs mailto handler #choose your line below depending on your favorite web browser, used desktop GUI respective XDG settings. emacsclient -a /usr/bin/emacs -c -e "(browse-url-mail \"$@\")" #emacsclient -a /usr/bin/emacs -e "(browse-url-mail \"mailto:$@\")"
To open Gnus automatically on C-x m (compose-mail) i guess the following advice from Stack Overflow:
(defadvice gnus-msg-mail (before start-gnus activate) (require 'gnus-start) (unless (gnus-alive-p) (save-window-excursion (let ((inhibit-redisplay t)) (gnus)))))
Gnus as Emacs client
Starting Gnus in Emacs client window from command line:
emacsclient --no-wait --eval '(gnus-other-frame)' # or emacsclient -n -e '(gnus-other-frame)'
development/emacs/gnus.txt · Last modified: by Ralf Hoppe
