|
|
|
@ -557,7 +557,6 @@ Quick navigation to words
|
|
|
|
|
Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets=
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package yasnippet
|
|
|
|
|
:config
|
|
|
|
|
:init
|
|
|
|
|
(yas-global-mode 1)
|
|
|
|
|
)
|
|
|
|
@ -567,6 +566,25 @@ Quick navigation to words
|
|
|
|
|
)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
* company
|
|
|
|
|
Autocompletion with [[https://company-mode.github.io/][company]]
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package company
|
|
|
|
|
:init
|
|
|
|
|
(global-company-mode t)
|
|
|
|
|
|
|
|
|
|
:config
|
|
|
|
|
;; (setq company-idle-delay 0)
|
|
|
|
|
(setq company-idle-delay
|
|
|
|
|
(lambda () (if (company-in-string-or-comment) nil 0.3)))
|
|
|
|
|
(setq company-minimum-prefix-length 3)
|
|
|
|
|
;; (add-to-list 'company-backends 'company-yasnippet t)
|
|
|
|
|
|
|
|
|
|
:bind
|
|
|
|
|
("C-<iso-lefttab>" . company-complete-common-or-cycle)
|
|
|
|
|
)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
* next
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
#+end_src
|
|
|
|
|