diff options
author | Alan Pearce | 2015-12-09 17:00:19 +0100 |
---|---|---|
committer | Alan Pearce | 2015-12-09 17:00:19 +0100 |
commit | 86e1b50e0491b1047e3c0484ef7aad7a02019b67 (patch) | |
tree | 2ed5f101a2bee1dcd2fd16f5fee58a36a45acba5 | |
parent | fd9d7a3ec850d44fbefe9c45922c1caa112343e4 (diff) | |
download | nixfiles-86e1b50e0491b1047e3c0484ef7aad7a02019b67.tar.lz nixfiles-86e1b50e0491b1047e3c0484ef7aad7a02019b67.tar.zst nixfiles-86e1b50e0491b1047e3c0484ef7aad7a02019b67.zip |
Emacs: Start server when idle
-rw-r--r-- | tag-emacs/emacs.d/init.org | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 1b7a03e9..0e062f56 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -2428,11 +2428,12 @@ the =org=-document after changes. Start a server if possible. A daemon is already a server. #+BEGIN_SRC emacs-lisp - (unless (daemonp) - (require 'server) - (if (server-running-p server-name) - (message "Server already appears to be running") - (server-start))) + (run-with-idle-timer 2 nil (lambda () + (unless (daemonp) + (require 'server) + (if (server-running-p server-name) + (message "Server already appears to be running") + (server-start))))) (benchmark-init/deactivate) (setq gc-cons-threshold 800000) #+END_SRC |