diff options
-rw-r--r-- | .emacs.d/lisp/init-company.el | 4 | ||||
-rw-r--r-- | .emacs.d/lisp/init-git.el | 1 | ||||
-rw-r--r-- | .emacs.d/lisp/init-package.el | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-company.el b/.emacs.d/lisp/init-company.el index 863e66e..5f5ac5e 100644 --- a/.emacs.d/lisp/init-company.el +++ b/.emacs.d/lisp/init-company.el @@ -1,8 +1,10 @@ (when (gx/maybe-require-package 'company) + (autoload #'global-company-mode "company" nil t) (when (not (display-graphic-p)) - (add-hook 'after-init-hook 'global-company-mode 'append))) + (add-hook 'after-init-hook #'global-company-mode 'append))) (with-eval-after-load 'company + (require 'company-tng) (company-tng-configure-default) (gx/diminish 'company-mode)) diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el index 3c3acf2..931f678 100644 --- a/.emacs.d/lisp/init-git.el +++ b/.emacs.d/lisp/init-git.el @@ -8,6 +8,7 @@ (setq magit-refresh-status-buffer nil) (when (gx/maybe-require-package 'git-gutter) + (autoload #'global-git-gutter-mode "git-gutter" nil t) (add-hook 'after-init-hook #'global-git-gutter-mode 'append)) (with-eval-after-load 'git-gutter diff --git a/.emacs.d/lisp/init-package.el b/.emacs.d/lisp/init-package.el index 11ee08f..b37d0e7 100644 --- a/.emacs.d/lisp/init-package.el +++ b/.emacs.d/lisp/init-package.el @@ -43,7 +43,7 @@ https://github.com/purcell/emacs.d/blob/master/lisp/init-elpa.el" (package-initialize) (gx/maybe-require-package 'auto-package-update) -(autoload #'auto-package-update-now "auto-package-update") +(autoload #'auto-package-update-now "auto-package-update" nil t) (setq auto-package-update-delete-old-versions t auto-package-update-hide-results t) |