aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-30 10:39:20 +0800
committerGuangxiong Lin <[email protected]>2022-04-30 10:39:20 +0800
commit40772b2757cd94110df1b2eecca7b5f640d7d0c5 (patch)
treecde435044f28f128f3680dd61ca03701eb748d47
parent1be5df85d78f7a716cd89429c64c75ee855710b9 (diff)
downloaddotfiles-40772b2757cd94110df1b2eecca7b5f640d7d0c5.tar.gz
dotfiles-40772b2757cd94110df1b2eecca7b5f640d7d0c5.tar.bz2
dotfiles-40772b2757cd94110df1b2eecca7b5f640d7d0c5.zip
Update emacs config
-rw-r--r--.emacs.d/lisp/init-company.el4
-rw-r--r--.emacs.d/lisp/init-git.el1
-rw-r--r--.emacs.d/lisp/init-package.el2
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)