unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Things overheard in #erc - H2 2021
       [not found] <87h79hke2l.fsf@neverwas.me>
@ 2022-02-03  1:57 ` Emanuel Berg via General discussion about ERC
  0 siblings, 0 replies; only message in thread
From: Emanuel Berg via General discussion about ERC @ 2022-02-03  1:57 UTC (permalink / raw)
  To: emacs-erc; +Cc: help-gnu-emacs

J.P. wrote:

>  * Buttonizing man(1) page refs
>    <https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00593.html>

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   https://dataswamp.org/~incal/emacs-init/erc/erc-man.el
;;;
;;; The manpage regular expressions including the comments
;;; with examples are from gnus-art.el lines 7892-7903,
;;; Emacs 29.0.

(require 'erc-button)

(setq erc-button-alist
  `(,@erc-button-alist
    ;; man pages: ls(1)
    ("\\b\\([a-z][a-z]+([1-9])\\)\\W" 0 t man 1)
    ;; more: iso_8859-1(7), resolv.conf(5), xterm(1x)
    ("\\b\\([a-z][-_.a-z0-9]+([1-9])\\)\\W" 0 t man 1)
    ;; even more: Apache::PerlRun(3pm), PDL::IO::FastRaw(3pm),
    ;; SoWWWAnchor(3iv), X(1), X(7), XSelectInput(3X11)
    ("\\b\\(\\(?:[a-z][-+_.:a-z0-9]+([1-9][X1a-z]*)\\)\\|\\b\\(?:X([1-9])\\)\\)\\W" 0 t man 1) ))

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-03  1:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87h79hke2l.fsf@neverwas.me>
2022-02-03  1:57 ` Things overheard in #erc - H2 2021 Emanuel Berg via General discussion about ERC

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 read-only IMAP folder(s) and NNTP newsgroup(s).