aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-utils.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-21 23:15:29 +0800
committerGuangxiong Lin <[email protected]>2022-04-21 23:15:29 +0800
commit49aa78b8d2e01b275038eb3869660fde3a077423 (patch)
tree547062092e1407164e9521a2a29cc0152f85b92c /.emacs.d/lisp/init-utils.el
parent660d23aabf0173df42a3404dd68d14a7caeedc8d (diff)
downloaddotfiles-49aa78b8d2e01b275038eb3869660fde3a077423.tar.gz
dotfiles-49aa78b8d2e01b275038eb3869660fde3a077423.tar.bz2
dotfiles-49aa78b8d2e01b275038eb3869660fde3a077423.zip
Add more autoload in emacs
Diffstat (limited to '.emacs.d/lisp/init-utils.el')
-rw-r--r--.emacs.d/lisp/init-utils.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-utils.el b/.emacs.d/lisp/init-utils.el
index dd3713d..d244084 100644
--- a/.emacs.d/lisp/init-utils.el
+++ b/.emacs.d/lisp/init-utils.el
@@ -1,10 +1,12 @@
(defun gx/diminish (mode &optional to-what)
(when (gx/maybe-require-package 'diminish)
+ (require 'diminish)
(diminish mode to-what)))
(setq exec-path-from-shell-arguments '("-l"))
(when (gx/maybe-require-package 'exec-path-from-shell)
(when (memq window-system '(mac ns))
+ (require 'exec-path-from-shell)
(exec-path-from-shell-initialize)))
(provide 'init-utils)