From: Guangran K. Z. <gua...@ma...> - 2011-01-05 03:19:47
|
Dear all, I would like to add some local key binding to the matlab-shell mode by adding the following code to my .emacs file ========================================================================= (defun my-matlab-hook () (local-set-key "M-p" '(matlab-shell-previous-matching-input-from-input n)) (local-set-key "M-n" '(matlab-shell-next-matching-input-from-input n)) ) (add-hook 'matlab-shell-mode-hook 'my-matlab-hook) ========================================================================= The matlab-shell-mode-hook is currently defined in matlab.el file. The code above does not link to the hook directly. Would anyone have any suggestion on this emacs problem? Thank you. -- Sincerely yours, Guangran Kevin Zhu (PhD Candidate) Computational Electromagnetics Lab McGill University Montreal, Canada Tel: 1-514-398-1533 |