Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [auto-complete-mode]

Auto-Complete, also known as auto-complete.el or Auto-Complete Mode, is an Emacs extension that provides context-sensitive completion suggestions

1
vote
0answers
20 views

Jedi doesn't work properly with PyQt5

I have auto-complete and jedi installed and everything works just fine except autocompletion in PyQt5. When i try to subclass for example QWidget and in the __init__ method I type self and then press ...
1
vote
0answers
18 views

Add keywords of a language to completion list when selected

I am using Emacs with auto-complete package. I know that Emacs can auto-detect the language. I would like it to automatically add keywords of the detected language to the completion list, in order to ...
0
votes
1answer
31 views

How to get auto-completion of Elisp function names?

I want to be able to get a drop-down list of partial matches to Elisp function names (installed or those already defined in the buffer) as shown in the screen-shot below from the YouTube video: https:...
0
votes
2answers
52 views

Ido mode - autocomplete in interactively mode

windows 10, emacs 26,1, ido mode I use ido mode. Suppose I start some command M-x magit Then TAB The possible completions are many and fill the screen: I need to continue typing and press TAB to ...
1
vote
1answer
61 views

Autocompletion of relative, not absolute, file name

I am typing a Tex file with Emacs and I want to be able to include the relative path of an image file name from inside Emacs. For example, my Tex file that is being opened in Emacs is located at ~/...
0
votes
0answers
25 views

how to get tern-mode to show documentation in the mini-buffer when autocompleting?

For my javascript setup within emacs, I am using tern-mode with company, using the following config. when auto-completing, I only get an 'usage example at dot', and the 'method signature in the mini-...
0
votes
0answers
36 views

Disable auto-completion for org-mode in spacemacs

I want to disable auto-completion layer in org-mode buffers. To do so, I added into my dotspacemacs/user-config this line: (add-hook 'org-mode-hook #'spacemacs/toggle-auto-completion-off) But it ...
0
votes
1answer
84 views

Best pratice advices for abbrev vs. completion vs. snippets

I am not sure if this is really a proper question but I am interested in having some opinions about the most efficient usage of Emacs' abbreviations features (abbrev/dabbrev) in combination with auto-...
0
votes
1answer
40 views

Error running timer using ac-slime

Using ac-slime I am getting the following errors: Error running timer ‘ac-update-greedy’: (wrong-type-argument number-or-marker-p \.\.\.) [3 times] Error running timer ‘ac-show-menu’: (wrong-type-...
1
vote
1answer
40 views

smart code generation macros

How could we create macros for smart code generation. For example in intellij, if i write a type that does not exist, intellij would be able to automatically generate an entire class of that type. I ...
2
votes
0answers
345 views

In Spacemacs, how can I enable snippets without having an autocomplete popup/completion?

I'm using the auto-completion layer in Spacemacs with the following configuration: (auto-completion :variables auto-completion-return-key-behavior nil auto-...
0
votes
0answers
50 views

auto-complete for SDL functions

I been using auto-complete for writing some C++ classes, and the setup I have works fine for auto completing functions form header files. However, when it comes to including SDL2 headers, AC seems ...
0
votes
1answer
29 views

auto-complete-mode turns off when I start typing

I do not remember changing any thing in my auto-complete package settings beside hooking it with html-mode. The mode starts as expected, when I run some C or C++ code but after typing any thing the ...
0
votes
0answers
129 views

Autocomplete fails when adding C++ standard header files

I want both autocomplete support for C++ keywords and C++ standard headers. In other words, I want A keyword like while to be autocompleted. An expression like #include <iostream> to be ...
0
votes
0answers
31 views

How to delete auto-complete package?

I don't understand emacs packages very well so the following has me confused. I installed the package "auto-complete" using M-x package-install [ret] auto-complete [ret]. Now I want to remove it so I ...
1
vote
1answer
173 views

LaTeX tags autocomplete in org-mode

Absolute beginner with Emacs and Emacs Lisp. I am using spacemacs and have been trying to get autocompletion of matching delimiters commonly used in LaTeX in Org-mode. My requirements are just ...
0
votes
0answers
41 views

Turn off prelude intellisense

In emacs prelude ruby mode, how I tell emacs to not do intellisense dropdown suggestions? It breaks my flow. Because I have to press an additional key to break out of that menu. What I tried: google ...
1
vote
1answer
741 views

Autocompletion with tide or tern

Autocompletion doesn't work with tide or Tern, I have to M-x company-complete-common. I would like for it to keep suggesting with a dropdown menu as I type, but I can't manage to. It works just fine ...
1
vote
0answers
143 views

Org mode - autocomplete tags

When I try to enter tags, autocomplete is tedious. I do C-c C-q enter first few characters, hit TAB then select. And repeat if I want to add more than one tags. I can do the same by entering : in the ...
0
votes
2answers
180 views

Install package `auto-latex-completion`

I am totally new to Emacs (I just began some days ago) and my purpose is to use it for Latex. I tried to install package auto-complete-auctex doing this : 1) I copy file auto-complete-auctex.el to ...
1
vote
0answers
36 views

Exactly what are those auto-complete sources?

I've been looking for years for a documentation on those (in bold) auto-complete sources: ac-source-words-in-buffer ac-source-abbrev ac-source-dictionary ac-source-emacs-lisp-features ac-source-...
1
vote
1answer
230 views

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

I've started taking an html course and I'm trying to figure out how to add functionality to emacs that exists in programs like atom or brackets. I've seen a few modes web-mode.el and nxhtml mentioned ...
3
votes
1answer
2k views

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

Say, I have been using Spacemacs for a while now, and was looking at Spacevim a bit. One nice feature of Spacevim is that it's autocompletion feature includes both the words for completion as well as ...
4
votes
2answers
146 views

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

When typing a number in spacemacs all kind of numbers are being suggested. I can autocomplete them with enter. I like this behaviour in the case I'm typing words (made up of letters). But I don't want ...
0
votes
1answer
38 views

Modes have no effect unless I deactivate and activate again

I'm extremely new to emacs (started using it yesterday), I use the latest version of emacs. The problem is, The modes I have enabled such as auto-complete-mode and org-bullets-mode seem to be ...
2
votes
0answers
169 views

How to prevent the completion feature of Emacs shell from adding an extra space after the first word of a command?

When using Emacs shell with the auto-completion feature enabled, I notice that whenever I perform typing and auto-completing a command, Emacs shell always adds an extra space after the first word. I ...
0
votes
1answer
166 views

Autocomplete parentheses when editing lisp [closed]

I am learning Lisp and find out that autocomplete parentheses is counter intuitive. I don't like it because I don't know how many parenthesis will go into another at the first hand. For example, (...
1
vote
1answer
142 views

Context suggestion for yasnippet

I would like to create a yasnippet snippet as follow: pressing weather I would like that would be inserted the following text current weather = with the cursor after the = (this can be done with ...
5
votes
1answer
90 views

Nested File Autocompletion in Emacs?

I'm using emacs (technically: spacemacs with helm). It seems that any time I call a function which requires a directory, I am presented with something like the following: The problem: If I am in /a/...
1
vote
2answers
39 views

Building Command to Append Selected Text to End of File (w/Tab Completion)

Problem: I'm trying to write a command that takes the selected text and appends it the end of a file of my choice. There also needs to be a tab completion (or autocompletion) element to the command, ...
0
votes
2answers
109 views

use-package does not execute `:config`

When loading auto-complete via auto-complete-config with use-package, then :config is not executed and local keymap is not set. (See example below) Why that and how to solve this? Example: save ...
1
vote
1answer
418 views

use-package and auto-complete, howto?

How to use auto-complete with use-package and have auto-complete loaded later? Following config is working, but how to get rid of the defer 2? (use-package auto-complete-config :defer 2 :...
4
votes
2answers
274 views

Context-aware auto completion for Go

Is there any context-aware auto-completion for Go e.g if I enter "fmt." after importing the library, auto-completion should pop up and suggest me the functions like "Println" etc.
1
vote
3answers
102 views

Disable loop completion when programming perl

When I type a loop keyword (for, while, do) in perl program, emacs automatically inserts brackets and parenthesizes to complete the loop structure. I would like to disable this but I'm not sure what ...
1
vote
1answer
148 views

Make Autocomplete ignore a word

I just got started with Emacs for around 1 week or so and I have the following question: can I make Auto Complete ignore a certain word (in a certain major mode)? Concrete example: I was writing in a ...
1
vote
0answers
190 views

How to enable fuzzy autocomplete in auto-complete and/or company-mode

I've searched for a long time and tried some suggestions from respective manuals like ac-use-fuzzy etc, but haven't been able to enable fuzzy matching. I mean I want it start without pressing any ...
0
votes
0answers
100 views

auto-complete quick help cannot be invoked manually

Following the ESS wiki, I try to bind the quick help pop up, but the key binding does not work. (It's still bound to the default "Mark Paragraph") (define-key ac-completing-map (kbd "M-h") 'ac-quick-...
2
votes
0answers
61 views

autocomplete takes a lot of time to update available property/methods on objects

I'm using tern and tern-autocomplete and my relevant init.el part looks like this: (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) (ac-config-default) (setenv "PATH" (concat "/path/to/node/...
0
votes
2answers
283 views

Python definitions not found by Jedi

Consider the following very simple Python project tree: . ├── main.py └── second.py main.py: import second as s def foo(arg): arg.helloWorld() foo(s) second.py: def helloWorld(): print("...
4
votes
1answer
672 views

Emacs - elisp code autocompletion in emacs-lisp-mode

With below setup, my ielm mode has autocompletion function: (require 'ac-slime) (add-hook 'slime-mode-hook 'set-up-slime-ac) (add-hook 'slime-repl-mode-hook 'set-up-slime-ac) (eval-after-load "auto-...
1
vote
0answers
309 views

How do I add autocompletion for a new language?

I have written code that returns lists of symbols representing modules and exported functions of a programming language. How do I integrate it with some autocompletion in Emacs? I looked at company ...
0
votes
2answers
305 views

How replace auto-complete-mode with company-mode in all major mode using it?

How I can replace auto-complete-mode with company-mode in all major mode using it? i.e. make all modes which activating auto-complete-mode (e.g. c-mode or sh-mode etc), activate company-mode instead ...
1
vote
1answer
56 views

init.el config overwritten in certain modes? [duplicate]

I find when I am using emacs in certain modes that configurations made in my init.el files do not apply anymore. E.g. I have my keybinds set up so that tab is used for indentation, § for snippet ...
0
votes
0answers
35 views

i need programming languages full cheat sheets files to add it in auto-complete folder?

i am using Emacs auto-complete-mode. This mode is amazing, but not all languages are supported out of the box and in some languages there are missing words and functions. I found out that that auto-...
1
vote
1answer
64 views

Getting auto-complete to work correctly in scribble-mode

I've been using Neil Van Dyke's scribble-mode for editing Scribble code in Emacs. I'm also using auto-complete and ac-capf to get better completion in scribble-mode. However, I've been running into a ...
0
votes
0answers
22 views

Auto complete is not enabled by default in aquamacs [duplicate]

I am using Aquanmacs 3.3 GNU Emacs 25.1.1 and installed auto-complete by using M-x package-install. But the function only works when I type M-x auto-complete-mode in some buffer. How could I do? ...
0
votes
0answers
320 views

spacemacs - How to configure for python and html snippet

i have used emacs for a while and was able to install yasnippet in less that a day and use it. But when i search anything related to spacemacs i end up with vague results and have to spend a lot of ...
1
vote
1answer
300 views

args-out-of-range error with ac-html

I tried using ac-html recently since I'm an auto-complete user and I'd like to have HTML completion in html-mode and web-mode buffers. However, it has been acting somewhat strangely and throws an ...
0
votes
1answer
299 views

How to make auto-completion case sensitive?

spacemacs default configuration enables auto-completion, however by default its case insensitive. How to make auto-complete case sensitive (specifically using a spacemacs configuration)?
0
votes
1answer
736 views

Autocomplete not working for JavaScript

So I can't get Auto-Complete to work for JavaScript. I've tried a variety of solutions but nothing seems to be working. Here is the relevant code snippet: ;; ;;adds js2-mode for javascript ...