Reputation: 19385
I'd like to only auto-complete when I hit the TAB
key, and not when hitting RET
. I've tried a number of config options, but I can't seem to disable the action. Here's my current config, which contains all the variations I've tried:
(define-key ac-completing-map "\t" 'ac-complete) ; use tab to complete, working
(define-key ac-completing-map "\r" nil)
(define-key ac-completing-map "\C-m" nil)
(define-key ac-completing-map "RET" nil)
(define-key ac-completing-map "<return>" nil)
Interestingly, \C-m
does work as expected, but hitting RET
doesn't.
Can someone tell me what I'm missing?
Upvotes: 2
Views: 1095
Reputation: 9380
These two lines alone work for me:
(define-key ac-completing-map [return] nil)
(define-key ac-completing-map "\r" nil)
If they does not work for you, you may post the value of ac-completing-map so we can figure out what is happening.
Upvotes: 4