Last active
July 6, 2019 06:05
-
-
Save imakado/b2ad45e4a53b7b0cf25f to your computer and use it in GitHub Desktop.
auto-complete: page-next, page-previous
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-key ac-complete-mode-map (kbd "C-v") 'ac-my-page-next) | |
(define-key ac-complete-mode-map (kbd "M-v") 'ac-my-page-pre) | |
(defun ac-my-page-next () | |
(interactive) | |
(when (ac-menu-live-p) | |
(when (popup-hidden-p ac-menu) | |
(ac-show-menu)) | |
(dotimes (counter (1- (popup-height ac-menu))) | |
(popup-next ac-menu)) | |
)) | |
(defun ac-my-page-pre () | |
(interactive) | |
(when (ac-menu-live-p) | |
(when (popup-hidden-p ac-menu) | |
(ac-show-menu)) | |
(dotimes (counter (1- (popup-height ac-menu))) | |
(popup-previous ac-menu)) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment