diff options
-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") |