I have the following code that is launched on Emacs startup:
(defun my-prolog-mode ()
(define-key prolog-mode-map (kbd "M-a") 'pop-tag-mark))
(eval-after-load "prolog-mode" '(my-prolog-mode))
I expect pop-tag-mark
function to be launched when M-a is clicked. But for some reason M-a
is bound to another function:
M-a runs the command prolog-beginning-of-clause, which is an
interactive compiled Lisp function in ‘prolog.el’.
What is it?
something-mode
when it does not in fact create a mode, which is a well-established and widespread naming convention. Can I suggestmy-prolog-mode-setup
instead?