Mercurial > hg > dotemacs
changeset 128:3400a312e7f8
rebind company-mode up and down keys
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 28 Aug 2015 12:59:33 -0400 |
parents | 7c2cf3608b63 |
children | ff8b7b4b2319 |
files | dotemacs.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dotemacs.el +++ b/dotemacs.el @@ -1,5 +1,5 @@ - (add-to-list 'load-path "~/.emacs.d/packages/") +(package-initialize) (defalias 'perl-mode 'cperl-mode) @@ -88,6 +88,11 @@ (let ((fname . (buffer-file-name))) (insert fname ":" (int-to-string (line-number-at-pos))))) +;; The default selection keys for company-mode are M-n and M-p, eww. +(require 'company) +(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) + (global-set-key (kbd "M-Q") 'unfill-paragraph) ;; Only killing the current buffer is useful (thanks to madpickle of #emacs)