reddit / emacs

[ido-numbered-mode] I made my first emacs package! It lets you switch buffers fast.

sstraust · 2022-09-15 19:58
Link: [https://github.com/sstraust/ido-numbered-mode](https://github.com/sstraust/ido-numbered-mode) Add numbered selection to ido-mode. Buffer: {0 .emacs | 1 \*Messages\* | 2 \*scratch\* | 3 \*shell\*} If you press a number (like "1") it will go to that buffer (i.e. *Messages* in the example above). 0 does not go to the 0th buffer (just hit enter) ​ I'm new to emacs lisp, so I'd love a review/feedback from a more experienced dev! :D
deaddyfreddy · 2022-09-16 11:21
- what if there are more than 10 buffers? - you can take a look at https://github.com/abo-abo/ace-window and counsel-switch-buffer (with `avy` integration) for inspiration - https://github.com/bbatsov/emacs-lisp-style-guide