我想在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