diff options
author | rekado <rekado@elephly.net> | 2016-12-04 21:58:36 +0100 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2016-12-04 21:58:36 +0100 |
commit | 778abfb1d24c6874299a391c90196eda92f721f7 (patch) | |
tree | e43c3e03bb3a85d4ae00e8bc78aad06b6b9dece7 /init.org | |
parent | f2d613c32b107c4b3b5432f0ea0ca59441cadc2f (diff) |
Lazy-load completion.
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -575,7 +575,7 @@ The default prompt face makes it hard to see the prompt. Company mode provides automatic completion. I like to enable it in all programming modes. I don’t use the global company mode because that would enable it in =org-mode= where the pop-up looks terrible with =variable-pitch-mode= enabled. -#+BEGIN_SRC elisp +#+BEGIN_SRC elisp :noweb-ref company-hook (add-hook 'prog-mode-hook 'company-mode) #+END_SRC @@ -598,11 +598,10 @@ I like automatic completion, but it’s nice to also have a key to trigger compl #+END_SRC #+BEGIN_SRC elisp :noweb-ref completion-lazy -(provide 'my/init-completion) (with-eval-after-load "company" <<completion>> ) -(require 'company) +<<company-hook>> #+END_SRC * Pretty symbols @@ -944,7 +943,6 @@ This is even more stuff to be done after initialising packages. I still need to (setq tab-width 4) (load "email.el") -(require 'my/init-completion) (setq gnus-select-method '(nntp "news.gmane.org")) (load "init-eshell.el") (load "init-smex.el") |