diff --git a/lisp/+mwim.el b/lisp/+mwim.el index 1c8ef5c..97a2b04 100644 --- a/lisp/+mwim.el +++ b/lisp/+mwim.el @@ -22,7 +22,7 @@ Will just do \\[beginning-of-line] in one of (if (apply #'derived-mode-p +mwim-passthrough-modes) (let ((this-mode-map (symbol-value (intern (format "%s-map" major-mode)))) (key "C-a")) - (funcall (or (keymap-lookup this-mode-map key t t) + (call-interactively (or (keymap-lookup this-mode-map key t t) (keymap-lookup (current-global-map) key t t)))) (call-interactively #'mwim-beginning))) @@ -34,8 +34,8 @@ Will just do \\[end-of-line] in one of (if (apply #'derived-mode-p +mwim-passthrough-modes) (let ((this-mode-map (symbol-value (intern (format "%s-map" major-mode)))) (key "C-e")) - (funcall (or (keymap-lookup this-mode-map key t t) - (keymap-lookup (current-global-map) key t t)))) + (call-interactively (or (keymap-lookup this-mode-map key t t) + (keymap-lookup (current-global-map) key t t)))) (call-interactively #'mwim-end))) (provide '+mwim)