I'm trying to use the package checkbox together with markdown-mode
. The checkbox documentation gives the following example on how to define a global key binding for it's functionality:
I'd recommend globally binding checkbox-toggle to a convenient keystroke:
(global-set-key (kbd "C-c C-t") 'checkbox-toggle)
Although this does indeed work for all other modes, it does not seem to work with markdown-mode
. While in markdown-mode
, entering the C-c C-t
keystroke simply waits for me to provide additional keystrokes (i.e. it's undefined according to emacs). Any ideas for why this happens, or how to fix it?
(I'm sorry if there is an obvious way to do this or find information about this problem, I'm a bit of an beginner)
emacs -Q
(no init file) and then load only library checkbox? If not, recursively bisect your init file to find out what is causing the problem.checkbox-toggle
do seem to work btwC-c C-t C-h
and check the commands that are (apparently) bound on prefix keyC-c C-t
. Their names will likely point you to some library that definesC-c C-t
as a prefix key. If so, you have a choice: Don't useC-c C-t
as a prefix key or bindcheckbox-toggle
to some key other thanC-c C-t
.C-c C-t
as a prefix key. See above. You can bindcheckbox-toggle
to any key you want, but if you bind it only in the global keymap and there is a collision with a binding in another map, the other-map binding wins.C-c C-t
forcheckbox-toggle
inmarkdown-mode
then you could bind it to that key inmarkdown-mode-map
. But that will prevent it acting as a prefix key...