emacs/lisp/term/bobcat.el
Robert Pluim 095d64577c Use key-translate instead of keyboard-translate
As a consequence of the discussions in Bug#65735, move to using the
new key-translate function instead of the deprecated
keyboard-translate.

For future maintainers: ?\C-? or ?\177 do not mean "DEL" with
key-translate, you have to use "DEL".

* lisp/simple.el (normal-erase-is-backspace-mode): Use key-translate.
* lisp/term/bobcat.el (terminal-init-bobcat): Use key-translate.
2023-10-05 17:55:32 +02:00

11 lines
301 B
EmacsLisp

;;; bobcat.el -*- lexical-binding:t -*-
(defun terminal-init-bobcat ()
"Terminal initialization function for bobcat."
;; HP terminals usually encourage using ^H as the rubout character
(key-translate "DEL" "C-h")
(key-translate "C-h" "DEL"))
(provide 'term/bobcat)
;;; bobcat.el ends here