[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `global-set-key' vs `keymap-global-set' `key-valid-p' syntax
From: |
Emanuel Berg |
Subject: |
Re: `global-set-key' vs `keymap-global-set' `key-valid-p' syntax |
Date: |
Tue, 07 May 2024 15:47:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> However there is one use case I don't know how to translate to
> the new format, it looks, for example, like this:
>
> (define-key input-decode-map [?\u1000] [M-S-RET-a])
> (global-set-key [M-S-RET-a] (lambda () (interactive) (message "hit
> M-S-RET")))
A third use case with the same [use case]:
(defun no-confirm-w3m-quit ()
(interactive)
(w3m-quit t) ) ; FORCE
(define-key (current-global-map) [remap w3m-quit] #'no-confirm-w3m-quit)
--
underground experts united
https://dataswamp.org/~incal