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 6803991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:24:42+00:00 2026-05-26T19:24:42+00:00

I just install auto-complete-mode, however everytime I start emacs I have to M-x auto-complete-mode.

  • 0

I just install auto-complete-mode, however everytime I start emacs I have to M-x auto-complete-mode. Is there anyway to have it loaded automatically ?

My .emacs is as follows:

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

Thanks

  • 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-05-26T19:24:43+00:00Added an answer on May 26, 2026 at 7:24 pm

    I think you can do it in various ways. To enable it globally you should use

    (global-auto-complete-mode t)
    

    But it uses auto-complete-mode-maybe, which turn AC on only those listed in ac-modes. You can add them manually just like this

    (add-to-list 'ac-modes 'sql-mode)
    

    You can make your own list if you wish AC be active only for few modes

    (setq ac-modes '(c++-mode sql-mode))
    

    Or rewrite it to have AC everywhere.

    (defun auto-complete-mode-maybe ()
      "No maybe for you. Only AC!"
      (auto-complete-mode 1))
    

    edited:

    Autocomplete in minibuffer is bad. I think this will be better.

    (defun auto-complete-mode-maybe ()
      "No maybe for you. Only AC!"
      (unless (minibufferp (current-buffer))
        (auto-complete-mode 1)))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop java in emacs. I install ecb, jde and auto-complete extensions.
I just tried to install git-flow, however, it does not seem to be integrated
I'm just trying to install everything needed to start messing with ADO in MSVC
I'm on OSX 10.6 and I have platform 2010.2.0.0 currently. Should I just install
I have I standard Emacs/nxhtml install. My nxhtml-autoload.el has the following line (I use
i have just install Eclipse PDT on my linux desktop computer. i am working
i have just install the xcode 4.2.1 with ios5 and i try to use
I've got a ClickOnce application deployed that many machines can install just fine -
I'm desperate. I just want to install a Google MAP API and it should
I'm having real problems getting PDO_MYSQL working. I started by just trying to install

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.