Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit code block stays in fundamental mode #868

Closed
orontee opened this issue Dec 31, 2024 · 1 comment
Closed

Edit code block stays in fundamental mode #868

orontee opened this issue Dec 31, 2024 · 1 comment

Comments

@orontee
Copy link

orontee commented Dec 31, 2024

Expected Behavior

After I added to markdown-code-lang-modes the pair ("restclient" . "restclient-mode"), when editing a code block starting with "restclient", I expect indirect edit buffer to have restclient-mode turned on.

Actual Behavior

The indirect edit buffer is in fundamental mode.

It may come from Restclient having no entry in auto-mode-alist nor in major-mode-remap-alist; Thus markdown--lang-mode-predicate returns nil.

Steps to Reproduce

  1. Using "customize" extend markdown-code-lang-modes as said above
  2. Install the package "restclient"
  3. In a buffer using (the excellent) markdown mode, edit a code block starting with restclient.

Backtrace

NA

Software Versions

@syohex
Copy link
Collaborator

syohex commented Jan 15, 2025

#873

@syohex syohex closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants