X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;ds=sidebyside;f=emacs.d%2Fconfig.org;h=8116e5c0fb60decf5bceecad43f209090ad4a23e;hb=6afd7c49c4b359a7d4ffe4dd6c166a21bdbf982f;hp=b1761449ad82fc1f064c20e71f90b4af6cad774a;hpb=bf8dbecc0742dc4baece54039f5f14e0a9a9ee43;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index b176144..8116e5c 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1666,13 +1666,21 @@ here on Mac, just use "open" commands to pen =.pdf=, =.html= and image files #+END_SRC * Completion -company mode and company-statistics +** company mode and company-statistics #+BEGIN_SRC emacs-lisp :tangle yes :results silent (use-package company :ensure t :diminish company-mode :init (setq company-idle-delay 0.1) + (setq company-selection-wrap-around t) :config + (define-key company-active-map (kbd "M-n") nil) + (define-key company-active-map (kbd "M-p") nil) + (define-key company-active-map (kbd "C-n") #'company-select-next) + (define-key company-active-map (kbd "C-p") #'company-select-previous) + ;; should map both (kbd "TAB") and [tab],https://github.com/company-mode/company-mode/issues/75 + (define-key company-active-map (kbd "TAB") #'company-complete-selection) + (define-key company-active-map [tab] #'company-complete-selection) (global-company-mode)) (use-package company-statistics