3 ms·
Speaking of, anyone know of a simple Emacs mode to automatically add "end" when I write "do" in elixir-mode? Ideally something language-agnostic. I know smartpa
by sph 3y ago
Speaking of, anyone know of a simple Emacs mode to automatically add "end" when I write "do" in elixir-mode? Ideally something language-agnostic. I know smartparens can do that, but I want something smaller and more focused.
I'd love if electric-pair-mode could do pairing with words, not only brackets.
- giraffe_lady 3y agoThis says smartparens can do it but I don't know how. But there's a snippet for hacking it out of ruby completion that works for me. https://github.com/elixir-editors/emacs-elixir#pairing https://github.com/elixir-editors/emacs-elixir#pairing
- alwaysbeconsing 3y agoA alternative that is builtin might be an skeletons (and abbrev) or tempo? Also see the newer implementation, tempel: https://github.com/minad/tempel https://github.com/minad/tempel