When I try to input a capital M in org-mode with ubuntu, I always got a M- in minibuffer, so M letter can never being input to my document.
How to fix it?
Thanks for @NickD's help.
Finally I found below line make the trouble:
(defun samplefunction()
(interactive)
(let ((fill-paragraph-function nil)
(adaptive-fill-function nil))
(fill-paragraph)))
(define-key org-mode-map "M-q" 'samplefunction)
This is define Meta-q, but not sure why it impackt on Shift-m.
(define-key org-mode-map "\M-q" 'samplefunction)
(see https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Sequences.html)
– JeanPierre
Mar 13 '22 at 15:44
C-h c S-m
in that org mode buffer, what do you get in the echo area? Does the problem occur if you start emacs withemacs -q
(i.e. without your init file)? – NickD Oct 12 '21 at 02:25C-h c S-m
say? If it is bound to functionfoo
, then search in your init file for that name: chances are you'll find the culprit. A more systematic approach is to bisect your init file: see https://emacs.stackexchange.com/questions/28429/how-do-i-troubleshoot-emacs-problems – NickD Oct 13 '21 at 19:15