Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9227643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:07:49+00:00 2026-06-18T05:07:49+00:00

I installed auto-complete using the marmalade repo. Everything installed correctly and after moving stuff

  • 0

I installed auto-complete using the marmalade repo. Everything installed correctly and after moving stuff around I managed to start up and run auto-correct without any errors with the following code in my init.el:

;; auto-complete
(add-to-list 'load-path "~/.emacs.d/elpa/auto-complete")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/elpa/auto-complete/dict")
(ac-config-default)

Now I can use auto-complete with no hick-ups with Emacs Lisp but whenever I use any other mode, like, Java, C, or C++ it doesn’t work at all.

I have yasnippet installed too (it works perfectly), not sure if that might have anything to do with it. Here’s the relevant code in my init.el:

;;yasnippet
(add-to-list 'load-path
              "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)

I am in the process of learning Emacs and currently I’m still a noob. I’ve been looking all over the documentation and SO but haven’t found anything. I’d really appreciate any help whatsoever on this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:07:50+00:00Added an answer on June 18, 2026 at 5:07 am

    You may need to add completion sources. Here’s what’s in my config:

    (set-default 'ac-sources
                 '(ac-source-abbrev
                   ac-source-dictionary
                   ac-source-yasnippet
                   ac-source-words-in-buffer
                   ac-source-words-in-same-mode-buffers
                   ac-source-semantic))
    

    Update: ac-config-default should cover this, but if autocomplete isn’t activating for those modes, try putting the following in your init.el:

    (dolist (m '(c-mode c++-mode java-mode))
      (add-to-list 'ac-modes m))
    
    (global-auto-complete-mode t)
    

    Update2: I’ve posted a gist that adapts your init.el to pull autocomplete using package-install.

    I can’t tell what version of auto-complete you were referencing, but the latest is working fine for me.

    C-mode with working auto-completions

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Eclipse Indigo and the auto-complete feature is working normally in the
Recently installed a new version of Eclipse PDT (3.0.2) and auto-complete, function information (ctrl+click),
I've got Auto Complete Mode installed for Emacs. First: When I'm typing declarations I
I am using the auto complete plugin by Devbridge and I have it all
a million error per day using eclipse with the Android plug-in i tried everything
I used to have the following line in auto-complete : (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories
I'm trying to enable auto complete for the command line in emacs mode. When
I am using VS.NET 2008 with TFS Client installed. My solution is a big
It appears that sometime after I installed VS2010 sp1 autocomplete now requires me to
I'm using ctags, which I installed in Ubuntu. When I autocomplete something in vim,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.