From: "Max Zettlmeißl" <max@zettlmeissl.de>
To: ERC Discussion <erc-discuss@gnu.org>
Cc: help-gnu-emacs@gnu.org, Emanuel Berg <moasenwood@zoho.eu>
Subject: Re: ERC custom IRC /command
Date: Sun, 17 Mar 2019 14:55:25 +0100 [thread overview]
Message-ID: <CACjvM=ckk8aG5bbzp51PusL53g8T6LdKFAhOorypG6j_QHP_rw@mail.gmail.com> (raw)
In-Reply-To: <86r2b8sysx.fsf@zoho.eu>
On Fri, Mar 15, 2019 at 2:37 AM Emanuel Berg <moasenwood@zoho.eu> wrote:
>
> How can I make a custom ERC IRC command,
>
By defining a function using the "erc-cmd-" prefix,
e.g. using your example command "/r": erc-cmd-R
(defun erc-cmd-R ()
;; If you want to send something to the server you could use
;; erc-send-message or erc-message, depending on what
;; exactly you intend to do.
...
nil)
A look into the ERC manual would have pointed you in the right
direction. The feature is named under [1] and [2] even contains an
example of it's use.
Using a search engine of your choice to search for "emacs erc custom
command" would also have helped you.
[1] https://www.gnu.org/software/emacs/manual/html_node/erc/Special-Features.html
[2] https://www.gnu.org/software/emacs/manual/html_mono/erc.html#Sample-Configuration
[3] https://www.emacswiki.org/emacs/ErcCommands (At the very bottom of
the page.)
next prev parent reply other threads:[~2019-03-17 13:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-15 1:37 ERC custom IRC /command Emanuel Berg
2019-03-17 13:55 ` Max Zettlmeißl [this message]
2019-03-17 19:29 ` Emanuel Berg
2019-03-18 3:10 ` Emanuel Berg
2019-03-18 10:48 ` Max Zettlmeißl
2019-03-18 15:11 ` Emanuel Berg
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='CACjvM=ckk8aG5bbzp51PusL53g8T6LdKFAhOorypG6j_QHP_rw@mail.gmail.com' \
--to=max@zettlmeissl.de \
--cc=erc-discuss@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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.