aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-06 00:08:46 +0800
committerGuangxiong Lin <[email protected]>2022-03-06 00:08:46 +0800
commit4198a6421c185e87d72a8d839b19e7984f48a23a (patch)
tree983acc0bc154973bc0559eba93ea20d5e004b481 /.emacs.d/lisp
parent4cf7c82be9593e36c88f1a9230f4af71bd434305 (diff)
downloaddotfiles-4198a6421c185e87d72a8d839b19e7984f48a23a.tar.gz
dotfiles-4198a6421c185e87d72a8d839b19e7984f48a23a.tar.bz2
dotfiles-4198a6421c185e87d72a8d839b19e7984f48a23a.zip
Improve emacs start up time
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-lang.el2
-rw-r--r--.emacs.d/lisp/init-misc.el1
-rw-r--r--.emacs.d/lisp/init-org.el3
3 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el
index 7f0de9e..884f2a4 100644
--- a/.emacs.d/lisp/init-lang.el
+++ b/.emacs.d/lisp/init-lang.el
@@ -32,12 +32,14 @@
(use-package magit
:ensure t
+ :commands (magit magit-status)
:config
(setq magit-refresh-status-buffer nil)
(evil-define-key 'normal 'global
(kbd "<leader>gs") 'magit))
(use-package realgud
+ :defer t
:ensure t)
(use-package plantuml-mode
diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el
index 53f9e89..5f5647b 100644
--- a/.emacs.d/lisp/init-misc.el
+++ b/.emacs.d/lisp/init-misc.el
@@ -88,6 +88,7 @@
:if (memq window-system '(mac ns))
:ensure t
:config
+ (setq exec-path-from-shell-arguments nil)
(exec-path-from-shell-initialize))
(use-package avy
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el
index b59cdfa..2c6c7ee 100644
--- a/.emacs.d/lisp/init-org.el
+++ b/.emacs.d/lisp/init-org.el
@@ -179,7 +179,8 @@
(use-package org-alert
:ensure t
- :config
+ :if (daemonp)
+ :init
(setq alert-default-style 'libnotify))
(provide 'init-org)