我在我的.emacs
文件中定义的键绑定不起作用.这是文件:
;init modes (menu-bar-mode 0) (tool-bar-mode 0) (cua-mode) (column-number-mode) (fset 'perl-mode 'cperl-mode) (cperl-set-style PerlStyle) ;keymappings (global-set-key [f12] 'save-buffer) (global-set-key [S-f12] 'write-file) (global-set-key [f7] 'ispell) (global-set-key [up] 'scroll-one-line-up) (global-set-key [down] 'scroll-one-line-down) ;functions (defun scroll-one-line-up (&optional arg) (interactive "p") (scroll-up (or arg 1))) (defun scroll-one-line-down (&optional arg) (interactive "p") (scroll-down (or arg 1)))
我知道Emacs解析文件,因为其他一切似乎都有效.这只是键没有被束缚.
我怎样才能使它工作?
你的在线有错误.emacs
:
(cperl-set-style PerlStyle)
它应该写成:
(cperl-set-style 'PerlStyle)
由于它引发了一个.emacs
在此时停止解析的错误,因此不会评估您的键绑定.