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

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

bug#37183: 26.2 Never for Tab-Always-Indent


From: Lars Ingebrigtsen
Subject: bug#37183: 26.2 Never for Tab-Always-Indent
Date: Sat, 05 Sep 2020 14:54:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

I just tried it, and it seems to work:

(setq overriding-terminal-local-map
      (let ((map (make-sparse-keymap)))
        (define-key map [?\t] 'self-insert-command)
        map))

By the way, that reminds me how annoying it is that we don't have a
"non-imperative" version to define keymaps.

(setq overriding-terminal-local-map
      (make-sparse-keymap
       '(([?\t] 'self-insert-command
         ("a" 'some-command)))))

(or a variation thereof) would seem more natural.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no






reply via email to

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