emacs-erc
[Top][All Lists]
Advanced

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

Re: Things overheard in #erc - H2 2021


From: Emanuel Berg
Subject: Re: Things overheard in #erc - H2 2021
Date: Thu, 03 Feb 2022 02:57:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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




reply via email to

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