与emacs默认冲突的xcscope密钥重新绑定

时间:2011-12-22 17:28:54

标签: emacs

我的init.el中有以下内容,但emacs中的c- \绑定到输入法。我不使用输入法,所以有没有办法禁用c- \不绑定到输入法?

(add-to-list 'load-path "~/.emacs.d")

(require 'xcscope)

(setq cscope-do-not-update-database t)

(define-key cscope:map "\C-\\s" 'cscope-find-this-symbol)

(define-key cscope:map "\C-\\g" 'cscope-find-global-definition)

(define-key cscope:map "\C-\\d" 'cscope-find-called-functions)

(define-key cscope:map "\C-\\c" 'cscope-find-functions-calling-this-function)

(define-key cscope:map "\C-\\t" 'cscope-find-this-text-string)

(define-key cscope:map "\C-\\e" 'cscope-find-egrep-pattern)

(define-key cscope:map "\C-\\f" 'cscope-find-this-file)

(define-key cscope:map "\C-\\i" 'cscope-find-files-including-file)

(define-key cscope:map "\C-\\b" 'cscope-display-buffer)

(define-key cscope:map "\C-\\B" 'cscope-display-buffer-toggle)

(define-key cscope:map "\C-\\n" 'cscope-next-symbol)

(define-key cscope:map "\C-\\N" 'cscope-next-file)

(define-key cscope:map "\C-\\p" 'cscope-prev-symbol)

(define-key cscope:map "\C-\\P" 'cscope-prev-file)

(define-key cscope:map "\C-\\u" 'cscope-pop-mark)

(define-key cscope:map "\C-\\v" 'cscope-history-backward)

(define-key cscope:map "\C-\\V" 'cscope-history-forward)

1 个答案:

答案 0 :(得分:0)

试试这个:

(global-unset-key (kbd "C-\\"))