Книга: Learning GNU Emacs, 3rd Edition

10.4.2 Unsetting Key Bindings

10.4.2 Unsetting Key Bindings

You can also remove a particular key binding with the global-unset-key and define-key commands. For example, the following lines will both remove the goto-line command bindings from our previous examples:

(global-unset-key [f5])
(define-key ctl-x-map "l" nil)

Of course, you don't need to unset any bindings if you plan to replace them with something else. But this can be useful if you have a common "typo" key that you don't want firing off when you type it by mistake.

Оглавление книги

Оглавление статьи/книги

Генерация: 1.125. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз