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

Add a switcher to literate modes to emacs mode #7255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WhatisRT
Copy link
Contributor

This was requested by Thorsten at the current AIM, and I find this useful myself. I'd be happy to add defaults for other modes as well, but there was a precedent set with #6817 so I held off with that. Also, I'm open to change the key bindings to something else.

@@ -181,6 +181,9 @@ Global commands
:kbd:`C-c C-x C-s`
Switch to a different Agda version

:kbd:`C-c C-x C-x`
When in a literate Agda file, switch to the associated mode, e.g. LaTeX.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naturally, this is a one-way trip, there is no key combination to get back to the Agda mode?
(Because we are in a foreign mode then.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general yes, but there is a feature to bind the return: The last two items in ("lagda" latex-mode latex-mode-map "\C-c\C-x\C-x") in agda2-literate-modes. This is a hack, since now that will always take you to Agda mode even if it's not a literate Agda file, but it's probably pretty unlikely that do it by accident.

@WhatisRT WhatisRT force-pushed the agda-mode-literate-switcher branch from c1d9050 to 88cc10c Compare May 14, 2024 21:00
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

Successfully merging this pull request may close these issues.

None yet

2 participants