From 4198a6421c185e87d72a8d839b19e7984f48a23a Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 6 Mar 2022 00:08:46 +0800 Subject: Improve emacs start up time --- .emacs.d/lisp/init-lang.el | 2 ++ .emacs.d/lisp/init-misc.el | 1 + .emacs.d/lisp/init-org.el | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) (limited to '.emacs.d') 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 "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) -- cgit v1.2.3