From: Wenshan Ren <renws1990@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: [Emacs LISP] Login freenode using ERC with prompt for password only
Date: Sat, 1 Dec 2012 01:21:19 -0800 (PST) [thread overview]
Message-ID: <f1c308eb-737e-40a3-9bf2-c11af77cab01@googlegroups.com> (raw)
Hello everyone, I am new to Emacs LISP and trying to write a emacs lisp, which hopefully will enable me to login irc without choosing server/port/nick.
After reading "C-h f erc", I end up with
(defun my-erc() (erc :server "irc.freenode.net" :port "6667" :nick "mynickname"))
If I put `:pass "mypassword"` at the end of the list, it works fine. However, I don't want to put my password in .emacs, so I hope Emacs will ask me for password when needed.
With the my-erc function I wrote, erc will login password and I have to identify myself afterwards.
Could you give me some hints on solving this?
Wenshan
next reply other threads:[~2012-12-01 9:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-01 9:21 Wenshan Ren [this message]
2012-12-01 9:54 ` [Emacs LISP] Login freenode using ERC with prompt for password only Pascal J. Bourguignon
2012-12-01 20:52 ` Wenshan Ren
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=f1c308eb-737e-40a3-9bf2-c11af77cab01@googlegroups.com \
--to=renws1990@gmail.com \
--cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.