[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Abbrevs for the most frequent elisp symbols
From: |
Artur Malabarba |
Subject: |
Re: Abbrevs for the most frequent elisp symbols |
Date: |
Wed, 31 Dec 2014 19:46:49 -0200 |
company comes with a backend that matches the initials of defined symbols,
the only difference is that you have to type the hyphens, so a modification
of that backend would be a viable approach for this menu that's being
suggested.
That seems like a worthy addition to company-mode for me.
Still, I think that should be something separate from this system that's
being discussed. When there are collisions, I prefer to use the most common
option than to pop-up a completions menu. That's how my setup works right
now, it's part of what makes it fast and it feels awesome. :-)
Besides, I feel Emacs has enough options when it comes to completions, and
I'd rather this not be Yet Another One.
Maybe SPC could trigger the most common expansion (a la abbrev) and TAB
could trigger the completions menu (a la company).
2014-12-31 7:50 GMT-02:00 Tom <adatgyujto@gmail.com>:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> >
> > If you use the `initials' completion style, "wcb" will match
> > "with-current-buffer" (along with various others), so if we add a good
> > sorting based on known usage frequency (as suggested by the OP), the
> > cycling completion will behave very similarly to his abbrevs.
>
> I wonder if it is possible to combine abbrevs with completion.
>
> I feel the most convenient completion is abbrevs, because then you
> don't have to press anything to complete, it just happens. But
> if we use initials then there can be collisions.
>
> What if we could use initial-abbrevs to type lisp symbols, but when
> there is more possible completions for the abbrev (e.g. if there is an
> other completion for wcb than with-current-buffer) then at
> abbrev expansion it would pop up a completion menu like company, etc.
> so right below the line) with the possible completions sorted by
> frequency with the most frequent at the top.
>
> This would be the most convenient solution, because then you could
> just type initials and completions would pop up without pressing
> anything, or if there is no collision then it would expand
> immediately like any other abbrev.
>
>
>
- Abbrevs for the most frequent elisp symbols, Tom, 2014/12/19
- Re: Abbrevs for the most frequent elisp symbols, Andreas Röhler, 2014/12/25
- Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/29
- Re: Abbrevs for the most frequent elisp symbols, Andreas Röhler, 2014/12/29
- Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/30
- Re: Abbrevs for the most frequent elisp symbols, Artur Malabarba, 2014/12/30
- Re: Abbrevs for the most frequent elisp symbols, Stefan Monnier, 2014/12/30
- Re: Abbrevs for the most frequent elisp symbols, Tom, 2014/12/31
- Re: Abbrevs for the most frequent elisp symbols,
Artur Malabarba <=
- Re: Abbrevs for the most frequent elisp symbols, Robert Thorpe, 2014/12/31
- Re: Abbrevs for the most frequent elisp symbols, Óscar Fuentes, 2014/12/30
Message not available
Re: Abbrevs for the most frequent elisp symbols, Marcin Borkowski, 2014/12/29