Gnus development mailing list
 help / color / mirror / Atom feed
From: 황병희 <soyeomul@doraji.xyz>
To: The Gnus <ding@gnus.org>
Subject: Re: elisp question with multiple smtp gnus
Date: Mon, 16 Nov 2020 23:05:40 +0900	[thread overview]
Message-ID: <yw9g3sz9yuoy.fsf@vtyjk.birch.chromebook> (raw)
In-Reply-To: <yw9g421e58o.fsf@vtywn.birch.chromebook> (=?utf-8?B?Iu2ZqQ==?= =?utf-8?B?67OR7Z2sIidz?= message of "Mon, 16 Nov 2020 19:49:07 +0900")

황병희 <soyeomul@doraji.xyz> writes:

> Byung-Hee HWANG <soyeomul@doraji.xyz> writes:
>
>> 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
>
> After all i did make up with my approch:
> https://gitlab.com/soyeomul/Gnus/-/raw/74ff79a7685d3e12dd49249bd6228b82b4c7061f/gnus-first-try.el

UPDATING:
https://gitlab.com/soyeomul/Gnus/-/blob/31f9d6c1473effffa0fdb52dc64f1e14df681b54/gnus-first-try.el

Sincerely, Gnus fan Byung-Hee

-- 
^고맙습니다 _和合團結_ 감사합니다_^))//


  reply	other threads:[~2020-11-16 15:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15  2:48 Byung-Hee HWANG
2020-11-16 10:49 ` 황병희
2020-11-16 14:05   ` 황병희 [this message]
2020-11-17 10:19     ` 황병희
2020-12-14 11:07       ` 황병희

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw9g3sz9yuoy.fsf@vtyjk.birch.chromebook \
    --to=soyeomul@doraji.xyz \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).