help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Erc-discuss] ERC custom IRC /command


From: Max Zettlmeißl
Subject: Re: [Erc-discuss] ERC custom IRC /command
Date: Sun, 17 Mar 2019 14:55:25 +0100

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.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]