From 63f52ff27b9d6312f11e5d851ed605f31d0d8baa Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:34 +0000 Subject: [PATCH] Start Emacs server on init if one is not already running --- config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.org b/config.org index d2bc2e2..ef83ee4 100644 --- a/config.org +++ b/config.org @@ -46,6 +46,20 @@ (setq use-package-always-ensure t) #+end_src +* Emacs Server + Start an Emacs server if one is not running already: + + #+begin_src emacs-lisp + (require 'server) + (unless (server-running-p) + (server-start)) + #+end_src + + With this, files opened with =emacsclient= in a terminal will open + in Emacs. Most of the time I use Emacs itself for my file browsing + and terminal needs but =emacsclient= is still handy from + time-to-time. + * UI The start-up message gets pretty annoying, so disable that.