From b1dee39c8a567ba96264bda235b93d07df55bbac Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 16 Mar 2022 00:49:47 +0800 Subject: Make company-mode more vim-like (emacs) --- .emacs.d/lisp/init-company.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-company.el b/.emacs.d/lisp/init-company.el index cc83dbd..58e4de4 100644 --- a/.emacs.d/lisp/init-company.el +++ b/.emacs.d/lisp/init-company.el @@ -2,11 +2,13 @@ (add-hook 'after-init-hook 'global-company-mode)) (with-eval-after-load 'company + (company-tng-configure-default) (gx/diminish 'company-mode)) (setq company-global-modes '(emacs-lisp-mode go-mode ledger-mode sh-mode c++-mode)) (setq company-minimum-prefix-length 1 - company-idle-delay (lambda () (if (company-in-string-or-comment) nil 0.3))) + company-idle-delay (lambda () (if (company-in-string-or-comment) nil 0.3)) + company-selection-wrap-around t) (provide 'init-company) -- cgit v1.2.3