Add company C-p and C-n bindings

This commit is contained in:
Maciej 2019-07-05 10:39:51 +03:00
parent 2a63e5f9e5
commit cebb82f39e
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
3 changed files with 8 additions and 9 deletions

View file

@ -37,6 +37,11 @@
company-lsp-async 1 ;; Fetch LSP results asynchronously
)
;; Use standard emacs next and previous bindings for navigating company
;; suggestions
(define-key company-active-map (kbd "C-p") 'company-select-previous-or-abort)
(define-key company-active-map (kbd "C-n") 'company-select-next-or-abort)
;;; Yasnippet configuration
(define-key prog-mode-map (kbd "C-c y") 'company-yasnippet)
(define-key prog-mode-map (kbd "<f13>") 'company-indent-or-complete-common)