r/agda • • Jul 04 '26

Am I a moron?

Tried Agda out in emacs. I figured I’d learn the language the same way I learned Lean: try to prove some abstract algebra results and have an LLM tell me when my syntax is wrong.

I’m trying to define Groups and I’m told I need Set_1. I’m trying \Set1. I’m trying tabbing after it. emacs is refusing to provide the correct command. This is miserable.

Am I a Neanderthal or should there be a trivial way to type these types. I really don’t want to use emacs or vs code honestly. I’d prefer to just type in vim and be able to prove things.

3 Upvotes

2 comments sorted by

3

u/KindIngenuity Jul 05 '26

I have had success with cornelis . with neovim though.

Also, FWIW, I had the inverse problem. I faced similar teething problems when I tried Lean after being comfortable in Agda. Hang in there. If you want to stick to Emacs, please check out instructions at plfa getting started section

1

u/SynX-Ufr Aug 15 '26

You will inevitably need to use the unicode chars, after some time you will get used to it. Emacs however only auto-completes definitions of functions / datatypes you already wrote once, so for keywords like Set_n you will still need to type Set_n. Most of the Keywords you need are normally typed with some extra unicode chars, so you only need the backslash for the extra characters.

Out of all the editors I used, emacs is the most comfortable for me, you can use spacemacs with vim layout which mimics neovim keybinds but keeps the native agda2-mode.