Emacs keys to move in pop ups of auto-complete

I am setting my Emacs for cpp development.

I have set up auto-complete and yasnippets and it is great.

But every time one of pop up comes, i have to reach the mouse to click the lowest or middle one..

It must be possible with keys too but i struggled to find one.

I found this article keys-for-pop-up but i think he is speaking about auto-completing without asking the user or showing no pops.


For anyone reading this, to move up or down in the auto-complete popup:

Move down: M-n

Move up: M-p

Here's the complete mode map from auto-complete.el

(define-key map "\t" 'ac-expand)
(define-key map [tab] 'ac-expand)
(define-key map "\r" 'ac-complete)
(define-key map [return] 'ac-complete)
(define-key map (kbd "M-TAB") 'auto-complete)

(define-key map "\M-n" 'ac-next)
(define-key map "\M-p" 'ac-previous)
(define-key map [down] 'ac-next)
(define-key map [up] 'ac-previous)

(define-key map [f1] 'ac-help)
(define-key map [M-f1] 'ac-persist-help)
(define-key map (kbd "C-?") 'ac-help)
(define-key map (kbd "C-M-?") 'ac-persist-help)

(define-key map [C-down] 'ac-quick-help-scroll-down)
(define-key map [C-up] 'ac-quick-help-scroll-up)
(define-key map "\C-\M-n" 'ac-quick-help-scroll-down)
(define-key map "\C-\M-p" 'ac-quick-help-scroll-up)

Need Your Help

Three.js WebGLRenderered videos don't play on android phones

three.js html5-video nexus-4

The video texture example below does not seem to work on android LG nexus phone although all other non video examples work including the youtube example on three.js.

Draw a line using the mouse in the Visio DLL under .NET

c# line draw visio

I'm trying to enable the drawing tools in my Visio object with C# (if you have a hint in VB it's welcome!). What I need is NOT the .DrawLine(shape, x1, y1, x2, y2) function, but changing the curren...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.