Gnus development mailing list
 help / color / mirror / Atom feed
* i would like to select one mail address at prompt when i hit `m' key in keyboard...
@ 2020-11-15  2:46 Byung-Hee HWANG
  2020-11-16 10:43 ` Solved problem (Was: Re: i would like to select one mail address at prompt when i hit `m' key in keyboard...) 황병희
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Byung-Hee HWANG @ 2020-11-15  2:46 UTC (permalink / raw)
  To: The Gnus

Hellow!

i am beginner at elisp. as far as i write-up below code.
===> references: emacs wiki [multiple smtp gnus]

#+begin_src emacs lisp
(setq user-full-name "Byung-Hee HWANG")
(setq sendmail-program "/usr/sbin/ssmtp")

(defun setHome ()
  (interactive)
  (message "from home -- soyeomul@doraji.xyz")
  (setq user-mail-address "soyeomul@doraji.xyz")
  (setq message-sendmail-extra-arguments '("-C" "/etc/ssmtp/ssmtp-yw.conf")))

(defun setWork ()
  (interactive)
  (message "from work -- soyeomul@gmail.com")
  (setq user-mail-address "soyeomul@gmail.com")
  (setq message-sendmail-extra-arguments '("-C" "/etc/ssmtp/ssmtp-gmail.conf")))

(add-hook 'message-mode-hook
	  '(lambda ()
	     (if (y-or-n-p "at home?")
		 (progn (setHome))
	       (progn (setWork)))))
#+end_src

at then, question...

how can i enable the above rule only when i hit `m' key?

i try to google and emacs manual etc... but failed..

Sincerely, Gnus fan Byung-Hee

-- 
^고맙습니다 _地平天成_ 감사합니다_^))//


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-12-01  0:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15  2:46 i would like to select one mail address at prompt when i hit `m' key in keyboard Byung-Hee HWANG
2020-11-16 10:43 ` Solved problem (Was: Re: i would like to select one mail address at prompt when i hit `m' key in keyboard...) 황병희
2020-11-16 15:41 ` i would like to select one mail address at prompt when i hit `m' key in keyboard Alberto Luaces
2020-11-17  3:00   ` 황병희
2020-11-16 16:06 ` Eric S Fraga
2020-11-17  2:08   ` 황병희
2020-11-17  2:52     ` Bob Newell
2020-11-17  3:09       ` 황병희
2020-11-17  7:14       ` Vegard Vesterheim
2020-11-17 16:34         ` Bob Newell
2020-11-30 23:31   ` David Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).