我想在matlab-mode
中重映射forward-sexp
至matlab-forward-sexp
。重新映射Emacs命令
目前,我这样做:
(define-key matlab-mode-map [remap forward-sexp] 'matlab-forward-sexp-safe)
但是当我在MATLAB模式类型M-x forward-sexp
我仍然得到旧的行为。为什么?当我通过键盘快捷方式拨打forward-sexp
时,它才起作用吗?
当我输入C-h f forward-sexp
一切似乎确定:
forward-sexp is an interactive compiled Lisp function in `lisp.el'.
It is remapped to `matlab-forward-sexp-safe', which is bound to C-M-f,
<C-M-right>, ESC <C-right>.
(forward-sexp &optional ARG)
For more information check the manuals.
Move forward across one balanced expression (sexp).
With ARG, do it that many times. Negative arg -N means
move backward across N balanced expressions.
This command assumes point is not in a string or comment.
This function is advised.
After-advice `ctx-flash'.
[back]
SMIE是什么意思?解析基础架构? – 2012-03-20 11:13:06