(setq ac-auto-start nil)
Specify how completion will be started. t means always starting completion automatically. nil means never started automatically. An integer means completion will not be started until the value is more than a length of the completion target string.
It's described in the Auto-Complete User Manual.
This is how I do it - which uses Ivy. I use it in a currently 1.2 MB file containing the names of students and classes (I teach Business English online to Chinese professionals). I looked around for quite a while to find a way to efficiently insert internal links, the link completion didn't seem to work very well. This article contains the code for the ...
abbrev can abbreviate text. Use a numeric argument to say how many words before point should be taken as the expansion. For example, to abbreviate the sentence "The cat and the mooon." as x, put the point at the end and do
C-u 5 C-x a g x <RET>
The emacs manual (info) for Abbrevs gives the details.
This was suggested to me through the org-mode mailing list: replace ‘org-tag-persistent-alist’ instead of org-tag-alist in ~/.emacs. I tried it: autocomplete works for both the local and global tag lists.
What company backends do you use? Remove company-files from company-backends.
company-files is an autoloaded interactive compiled Lisp function in
company-mode completion backend existing file names.
Completions works for proper absolute and relative files paths.
File paths with spaces are only supported inside strings.
The online help of Elpy says:
Elpy uses Company Mode for the completion interface, so its documentation is a good place for further information.
The most probable explanation is that company is not installed, or not correctly tweaked in your init.el file.
Make sure that company is installed and then try to add the following line in your init file:
As DoMiNeLa10♦ metioned, lsp-mode can do this:
You should install typescript-language-server in your system and lsp-mode, js2-mode, autocomplete in your emacs. You can check these link for more details.
Or you can check my emacs.d file: