Discussion:
[AUCTeX] Completion in minibuffer
Denis Bitouzé
2016-12-16 20:07:12 UTC
Permalink
Hi,

thanks to completion packages (`auto-complete', `company'), one can save
a lot of time and pain while typing text and code.

It would be helpfull as well for LaTeX but, with C-c <RET>, everything
takes place in the mini-buffer where, AFAIK, completion of commands or
environments already present in the buffer (current and other ones open)
isn't performed.

Would it be possible to have completion in minibuffer? Or maybe there is
a better solution?

Thanks.
--
Denis
Eastern Daylight Time
2016-12-16 21:03:50 UTC
Permalink
Hi Denis,
Post by Denis Bitouzé
Would it be possible to have completion in minibuffer? Or maybe there is
a better solution?
I use helm to get a sort of minibuffer completion when using AUCTeX. I type until it’s convenient to scroll to the option I want, then highlight it and hit return.

Hope that helps!

--
EDT
Joost Kremers
2016-12-16 21:45:48 UTC
Permalink
Post by Eastern Daylight Time
Hi Denis,
Post by Denis Bitouzé
Would it be possible to have completion in minibuffer? Or maybe there is
a better solution?
I use helm to get a sort of minibuffer completion when using
AUCTeX. I type until it’s convenient to scroll to the option I
want, then highlight it and hit return.
The ivy package is an alternative, which some claim is more
lightweight. I never compared the two, though.
--
Joost Kremers
Life has its moments
Denis Bitouzé
2016-12-17 10:12:44 UTC
Permalink
Post by Joost Kremers
Post by Eastern Daylight Time
Hi Denis,
Post by Denis Bitouzé
Would it be possible to have completion in minibuffer? Or maybe
there is a better solution?
I use helm to get a sort of minibuffer completion when using AUCTeX.
I type until it’s convenient to scroll to the option I want, then
highlight it and hit return.
The ivy package is an alternative, which some claim is more
lightweight. I never compared the two, though.
I could try it (it is installed as a dependency package) but same
question than for helm: how do you invoke it?
--
Denis
Marcin Borkowski
2016-12-18 05:36:43 UTC
Permalink
Post by Denis Bitouzé
Post by Joost Kremers
Post by Eastern Daylight Time
Hi Denis,
Post by Denis Bitouzé
Would it be possible to have completion in minibuffer? Or maybe
there is a better solution?
I use helm to get a sort of minibuffer completion when using AUCTeX.
I type until it’s convenient to scroll to the option I want, then
highlight it and hit return.
The ivy package is an alternative, which some claim is more
lightweight. I never compared the two, though.
I could try it (it is installed as a dependency package) but same
question than for helm: how do you invoke it?
M-x ivy-mode?

Best,
--
Marcin Borkowski
Denis Bitouzé
2016-12-18 10:35:27 UTC
Permalink
Post by Marcin Borkowski
Post by Denis Bitouzé
I could try it (it is installed as a dependency package) but same
question than for helm: how do you invoke it?
M-x ivy-mode?
Indeed.

In fact, I suspected something as complicated as for `helm': the latter
is already invoked (mode on) but nothing happened (no completion list)
without (I guess) some keystroke.
--
Denis
Denis Bitouzé
2016-12-17 10:10:57 UTC
Permalink
Post by Eastern Daylight Time
Hi Denis,
Hi EDT,
Post by Eastern Daylight Time
Post by Denis Bitouzé
Would it be possible to have completion in minibuffer? Or maybe there is
a better solution?
I use helm to get a sort of minibuffer completion when using AUCTeX.
I type until it’s convenient to scroll to the option I want, then
highlight it and hit return.
In fact, I'm often using `helm-swoop' but not directly `helm'. How do
you invoke `helm' for this purpose?
Post by Eastern Daylight Time
Hope that helps!
I guess so! :)
--
Denis
Mosè Giordano
2016-12-18 10:50:33 UTC
Permalink
Hi Denis,
Post by Denis Bitouzé
Hi,
thanks to completion packages (`auto-complete', `company'), one can save
a lot of time and pain while typing text and code.
It would be helpfull as well for LaTeX but, with C-c <RET>, everything
takes place in the mini-buffer where, AFAIK, completion of commands or
environments already present in the buffer (current and other ones open)
isn't performed.
Would it be possible to have completion in minibuffer? Or maybe there is
a better solution?
I use helm for completion in minibuffer, but I didn't try
alternatives, like the already mentioned ivy. Here is a longish guide
for configuring helm: https://tuhdo.github.io/helm-intro.html
However, regarding compatibility with AUCTeX, helm doesn't work with
`multi-prompt-key-value' (function used in AUCTeX to provide
completions for key=value syntax) and helm's maintainer doesn't want
to fix it because they only support recent Emacsens.

Bye,
Mosè

Loading...