6 votes
Accepted

Can I use emacs with company-mode and company-go to complete Go's standard library function names?

You need to tell company-mode what backend to use. In my init file I have the following code (add-hook 'go-mode-hook (lambda () (set (make-local-variable 'company-backends) '(company-go)...
Tephra's user avatar
  • 831
5 votes
Accepted

Auto-complete C/C++ functions

A vanilla company install wont quite get you where you want; you'll need to use use something like the company-c-headers package. Tuhdo has written an excellent document on using Emacs as a C/C++ IDE, ...
Gastove's user avatar
  • 1,551
4 votes

How do you configure emacs for julia?

I am currently using these 2 Emacs packages: julia-mode julia-repl everything is detailed in the julia-repl author's blog post. It is the best I have found so far. I am quite happy with it and I ...
Picaud Vincent's user avatar
4 votes
Accepted

How to get auto-completion of Elisp function names?

I'd like to recommend the package company-mode. I found it easier to setup and config. For beginners, using the following configuration will enable the autocomplete out of box. (use-package company ...
yaodong's user avatar
  • 154
3 votes
Accepted

Emacs - elisp code autocompletion in emacs-lisp-mode

Add below line should work: (add-hook 'emacs-lisp-mode-hook 'ielm-auto-complete)
lucky1928's user avatar
  • 1,666
3 votes

elpy with ipython as rpc -- how to get good autocompletion

Elpy doesn't require emacs jedi package. Also they won't work well when both are configured. I guess there is some conflict between them. Use only elpy and you should be able to get completion in rpc ...
Chillar Anand's user avatar
3 votes

emacs auto-complete-c-headers and closing brackets

I'm not sure how you would accomplish this with auto-complete but I do know that you can do all of this and more with company-mode, company-irony, company-irony-c-headers, and irony. You can find all ...
Libre Arch's user avatar
3 votes
Accepted

How to turn off autocompletion for numbers (and numbers only) in company-mode in spacemacs

It seems to be as simple as: (setq company-dabbrev-char-regexp "[A-z:-]") I got this far by studying this q&a: How can I prevent company-mode completing non-English chars?
jajpater's user avatar
  • 323
3 votes

How to auto-complete links to headlines in org-mode?

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 ...
ian's user avatar
  • 183
3 votes
Accepted

Get autocomplete to display candidates only when tab is pressed

(setq ac-auto-start nil) ac-auto-start Specify how completion will be started. t means always starting completion automatically. nil means never started automatically. An integer means completion ...
muffinmad's user avatar
  • 2,300
2 votes

Auto-complete file path on ESS R-mode

Just in case someone comes across this question; I was able to do this by essentially turning on tab completion from R as follows: (require 'auto-complete-config) (ac-config-default) (define-key ac-...
chandler's user avatar
  • 133
2 votes

How to configure emacs to show documentation alongside completions while using gocode?

If you use Icicles then you can use C-M-RET (or C-M-mouse-2) to see the full doc string (in *Help*) of any completion candidates. You can use the arrow keys C-M-down and C-M-up to cycle among ...
Drew's user avatar
  • 77.5k
2 votes
Accepted

AUCTeX - removing an environment from auto-complete list

You can declare macros and environments you don't need using TeX-declare-expert-macros and LaTeX-declare-expert-environments and then set TeX-complete-expert-commands to nil.
Tassilo Horn's user avatar
2 votes
Accepted

Autocompletion of a variable name while Python debugging

I have used M-x pdb on and off for quite some time now, and while I would love to be corrected on this, unfortunately I don't think it supports tab completion. I have recently started playing with ...
elethan's user avatar
  • 4,825
2 votes

irony mode not working in ubuntu 16.04

I'm pretty sure you're missing the company-irony mode here. As far as I know, irony is not enough for autocompleting. At least not with your setup. I'll first explain a kind-of-short answer to it ...
anachronic's user avatar
2 votes

How do you configure emacs for julia?

The latest project in this field (as of 2020) is Julia snail, which aims at providing development environment and REPL interaction package for Julia in the spirit of Common Lisp’s SLIME and Clojure’s ...
François Févotte's user avatar
2 votes
Accepted

init.el config overwritten in certain modes?

Emacs keybindings are hierarchical. Global keybindings are masked by major-mode keybindings, and major-mode keybindings are masked by minor-mode keybindings. When you set global keybindings in your ...
Tyler's user avatar
  • 22.3k
2 votes

Disable loop completion when programming perl

cperl creates abbreviations for perl keywords into ~/.emacs.d/abbrev_defs that trigger function cperl-electric-keyword that does the expansion. To remove the offending entries, call M-x edit-abbrevs, ...
Heikki's user avatar
  • 3,066
2 votes
Accepted

use-package does not execute `:config`

For starters, you can expand the use-package macro to see what it's doing. Put point at the end and try pp-macroexpand-last-sexp to see what use-package will do. I suspect nothing here ever actually ...
glucas's user avatar
  • 20.6k
2 votes

Nested File Autocompletion in Emacs?

You can use package helm-locate while searching by issuing C-u C-x C-f. This will, however, search globally. If you are in a Git repository you can also do helm-ls-git-ls with C-x C-d, searching in ...
theldoria's user avatar
  • 1,845
2 votes
Accepted

Context suggestion for yasnippet

One way to do this is with yas-choose-value: # -*- mode: snippet -*- # key: weather # -- current weather = ${1:$$(yas-choose-value '("sunny" "rainy"))} Please read through the writing snippets ...
Kyle Meyer's user avatar
  • 7,044
2 votes
Accepted

Autocomplete parentheses when editing lisp

It sounds like you're editing lines of code instead of S-expressions. As long as you think of Lisp as lines of code, things like electric-pair-mode are going to drive you nuts. First off: When ...
Jeff Spaulding's user avatar
2 votes
Accepted

Modes have no effect unless I deactivate and activate again

Some variables in Emacs are buffer-local. This means that when you set them they apply only to the current buffer. Many minor modes are buffer-local. So running (org-bullets 1) enables org-bullets ...
Moyamo's user avatar
  • 398
2 votes

How to turn off autocompletion for numbers (and numbers only) in company-mode in spacemacs

(push (apply-partially #'cl-remove-if (lambda (c) (string-match-p "\\`[0-9]+\\'" c))) company-transformers) The above code snippet is copied from the discussion ...
Swarnendu Biswas's user avatar
2 votes

spacemacs auto-complete layer: showing the difference between a snippet and a dictionary word

The answer is in the spacemacs docs for the auto-completion layer: (setq auto-completion-enable-snippets-in-popup t) You can read those docs inline with SPC h l auto-completion RET (and you can jump ...
Croad Langshan's user avatar
2 votes

solution for html "intellisense" style completion for emacs like Atom or Brackets have

In stock Emacs, you can perform completion with M-TAB. If you want a popup to appear magically, then you probably want to install and enable the company package, available from GNU ELPA. The quality/...
Stefan's user avatar
  • 26.4k
2 votes
Accepted

Best pratice advices for abbrev vs. completion vs. snippets

As you already said, this is more a request for opinions than a question. I think what you're doing is totally fine and done by many others, too. To me, one of Emacs' main advantages is that it can ...
Stefan Kamphausen's user avatar
2 votes
Accepted

Auto-completion in Auctex automatically introduces dollar signs

In Emacs besides auto-completion there's another method of automatic insertion: electric characters. In some prog modes, some predefined characters in addition to inserting themselves, also reindent ...
Alexandr Karbivnichyi's user avatar
2 votes

Elpy Auto Complete is not working at all

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 ...
Philopolis's user avatar
  • 1,134

Only top scored, non community-wiki answers of a minimum length are eligible