0
我想更改的行为Ctrl - d键。所以它会向后删除一个单词。我创建了一个功能:Emacs无法重置Ctrl-d键行为
(defun backward-delete-word (arg)
"Delete characters backward until encountering the beginning of a word.
With argument ARG, do this that many times."
(interactive "p")
(delete-region (point) (progn (backward-word arg) (point))))
然后插入emacs.d
此:
(global-set-key (kbd "\C-d") 'backward-delete-word)
它的工作原理基本模式,但是在PHP-模式下,它只是删除了一个字符。当我点击
CTRL-Hķ按Ctrl-d
Emacs中给出了这样的:
C-d runs the command c-electric-delete-forward, which is an
interactive compiled Lisp function in `cc-cmds.el'.
It is bound to C-d.
(c-electric-delete-forward ARG)
不知何故,它被重置到另一个功能。如何找出它在哪里被重置,并使之与我的功能一起工作呢?