【问题标题】:Failed to customize a local key-binding in GDB mode in GNU Emacs 23无法在 GNU Emacs 23 中以 GDB 模式自定义本地键绑定
【发布时间】:2014-04-28 09:36:42
【问题描述】:

我已将以下代码添加到我的.emacs 以将命令gdb-restore-windows 绑定到键序列C-c C-.。但是当我启动 GDB 模式并键入键序列时,我总是得到提示

C-c C-。未定义。

(defun xyt/gdb-hotkey-hook ()
  (local-set-key (kbd "C-cC-.") 'gdb-restore-windows))

(add-hook 'gdb-mode-hook 'xyt/gdb-hotkey-hook)

【问题讨论】:

  • 你错过了空间:(kbd "C-c C-.")

标签: emacs customization key-bindings


【解决方案1】:

正如@artscan 在问题评论中指出的那样,我错过了一个空格。

【讨论】:

    猜你喜欢
    • 2011-05-01
    • 2011-07-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多