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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:52:10+00:00 2026-06-12T03:52:10+00:00

I am very happy with auto-complete but one thing bugs me: I’m setup to

  • 0

I am very happy with auto-complete but one thing bugs me:

I’m setup to show the inline suggestion immediately but the menu with 0.9 s delay. I type the first few letters e.g. “del” which get immediately auto-completed inline to “delete”. If I wanted to type “delete” I hit TAB and this is alright. But what if I wanted to actually type “del” and a newline – here hitting RET again auto-completes to “delete”.

How can I force RET to be newline if only inline suggestion is shown? Once the auto-complete menu is displayed I want it to be the trigger key again as usual.

Thank you!

  • 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-12T03:52:11+00:00Added an answer on June 12, 2026 at 3:52 am

    By adding the following lines after other settings for the auto-complete mode, you can enable completion by RET only when completion menu is displayed:

    (define-key ac-completing-map "\C-m" nil)
    (setq ac-use-menu-map t)
    (define-key ac-menu-map "\C-m" 'ac-complete)
    

    ac-completing-map is a keymap where RET is by default bound to ac-complete, and ac-menu-map is a keymap for completion on completion menu. The ac-menu-map keymap is enabled when the ac-use-menu-map variable is t.

    FYI, completion can be stopped by pressing C-g at any time. So you will also be able to hit C-g and RET to enter a newline with the bindings of RET intact. Also, you can use C-j rather than RET when you want to enter a newline. C-j does not bind to ac-complete by default.

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

Sidebar

Related Questions

IDLE is being very dodgy as to when it will actually show an Auto-complete
I'm starting to use LINQ, and I'm very happy with its intuitive use, but
I'm very happy that Lion introduced NSRegularExpression , but I can't understand why the
I am very happy with SolrNet but at times the querystring becomes too long
I've been using VMWare for a while and am very happy with it, but
I've installed cherokee and am very happy with it. But now I'm wondering how
I'm using restful routing module for asp.net mvc and very happy with it. But
I am writing an alarm program for android and am very happy with it
Generally speaking, I am very happy with the changes in Xcode 3.2. However, there
When I started to develop with .NET under VS2008 recently, I was very happy

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.