[英]Failed to customize a local key-binding in GDB mode in GNU Emacs 23
I've added the code below to my .emacs
to bind the command gdb-restore-windows
to the key sequence Cc C-. 我已将以下代码添加到
.emacs
以将命令gdb-restore-windows
绑定到键序列Cc C-。 . 。 But when I start GDB mode and type the key sequence, I always get the prompt
但是当我启动GDB模式并键入键序列时,总是得到提示
Cc C-.
抄送C-。 is undefined.
未定义。
(defun xyt/gdb-hotkey-hook ()
(local-set-key (kbd "C-cC-.") 'gdb-restore-windows))
(add-hook 'gdb-mode-hook 'xyt/gdb-hotkey-hook)
正如@artscan在问题评论中指出的那样,我错过了一个空格。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.