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

Code navigation #98

Open
ajirving opened this issue Dec 8, 2024 · 1 comment
Open

Code navigation #98

ajirving opened this issue Dec 8, 2024 · 1 comment

Comments

@ajirving
Copy link

ajirving commented Dec 8, 2024

It would be really helpful if some of the standard Emacs functions for navigating code worked in Lean4 mode. Is it possible to make beginning-of_defun (c-m-a), end-of-defun (c-m-e) move to the beginning/end of the current proof? Could backward-up-list (c-m-u) move to the start of the proof of the current subgoal? I know the Lean syntax is very complicated so doing this perfectly might be hard but even something based only on indentation would be helpful.

Do other users have any tips for navigating long proofs in Emacs without these commands? I use them all the time in other language modes.

@mekeor
Copy link
Collaborator

mekeor commented Dec 8, 2024

Thanks for reporting. I agree that Lean4-Mode should offer this kind of feature.

If you are impatient, you might use this repository by @ultronozm https://github.com/ultronozm/czm-lean4.el and their related repositories. Personally, I would not expect them to be stable for everyone but rather personal projects.

@mekeor mekeor added this to the 5. Features and Bugs milestone Dec 8, 2024
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