[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: in which keymap to set SIGUSR-handler
From: |
Eli Zaretskii |
Subject: |
Re: in which keymap to set SIGUSR-handler |
Date: |
Sun, 27 Aug 2023 20:59:50 +0300 |
> From: Shynur Xie <one.last.kiss@outlook.com>
> Date: Sun, 27 Aug 2023 16:54:25 +0000
> msip_labels:
>
> Hi, friends. I'm reading the elisp manual. In 22.7.12 Miscellaneous
> System Events
> (<https://gnu.org/s/emacs/manual/html_node/elisp/Misc-Events.html>),
> there's a sample code about SIGUSR:
>
> (keymap-set special-event-map "<sigusr1>" 'sigusr-handler)
>
> In 22.7.13 Event Examples
> (<https://gnu.org/s/emacs/manual/html_node/elisp/Event-Examples.html>)
> there's another one:
>
> (keymap-global-set "<signal> <usr1>" 'usr1-handler)
>
> Which one should I use in my init file? Thanks in advance.
They should both work. Did you try?