diff options
author | Guangxiong Lin <[email protected]> | 2022-03-16 00:49:47 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-16 00:49:47 +0800 |
commit | b1dee39c8a567ba96264bda235b93d07df55bbac (patch) | |
tree | 3305507c0c9f0bb776138bdef997ad685016c6be | |
parent | f8d7c5796a73510b3d26596dcc0f00e213b93784 (diff) | |
download | dotfiles-b1dee39c8a567ba96264bda235b93d07df55bbac.tar.gz dotfiles-b1dee39c8a567ba96264bda235b93d07df55bbac.tar.bz2 dotfiles-b1dee39c8a567ba96264bda235b93d07df55bbac.zip |
Make company-mode more vim-like (emacs)
-rw-r--r-- | .emacs.d/lisp/init-company.el | 4 |
1 files changed, 3 insertions, 1 deletions
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) |