From 09100ecbafe304e4dee42c56f8b17ba24b55a299 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 8 Jul 2014 22:17:07 +0100 Subject: [PATCH] Improve auto-complete keybindings --- keybindings.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/keybindings.el b/keybindings.el index 64f1a10..627b59d 100644 --- a/keybindings.el +++ b/keybindings.el @@ -57,6 +57,11 @@ (global-set-key (kbd "C-c /") 'comment-or-uncomment-region-or-line) (global-set-key (kbd "C-c C-/") 'comment-or-uncomment-region-or-line) +(when (require 'auto-complete nil 'noerror) + (define-key ac-completing-map (kbd "C-s") 'ac-isearch) + (define-key ac-completing-map (kbd "C-n") 'ac-next) + (define-key ac-completing-map (kbd "C-p") 'ac-previous)) + ;; phi-search (enables C-s and C-r searching with multiple-cursors-mode). (when (require 'phi-search nil 'noerror) (global-set-key (kbd "C-s") 'phi-search)