From 778abfb1d24c6874299a391c90196eda92f721f7 Mon Sep 17 00:00:00 2001 From: rekado Date: Sun, 4 Dec 2016 21:58:36 +0100 Subject: Lazy-load completion. --- init.org | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 72dd048..4dd1798 100644 --- a/init.org +++ b/init.org @@ -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" <> ) -(require 'company) +<> #+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") -- cgit v1.2.3