purcell / emacs.d

An Emacs configuration bundle with batteries included
BSD 2-Clause "Simplified" License
6.82k stars 2.04k forks source link

How to disable auto-completion? #821

Closed JiatuYan closed 1 year ago

JiatuYan commented 1 year ago

I imported cdlatex package to write mathematic symbols by latex. To jump from one curly braces to another, i need tap tab frequently. However the auto-completion always opens a list and disable such jump. This really slows down my coding since i have to use C-C C-G to close the annoying list.

purcell commented 1 year ago

You should be able to set corfu-auto to nil locally in that mode, something like

(add-hook 'latex-mode-hook (lambda () (setq-local corfu-local nil)))
purcell commented 1 year ago

Or if you don't want auto-completion anywhere, edit the corresponding line in init-corfu.el

JiatuYan commented 1 year ago

Maybe my package's version is so outdated that it does not have corfu. I found company-mode can fix my problem. But thanks anyway.