Start Emacs server on init if one is not already running

This commit is contained in:
Camden Dixie O'Brien 2021-01-01 00:00:34 +00:00
parent 04803253d7
commit 63f52ff27b

View File

@ -46,6 +46,20 @@
(setq use-package-always-ensure t) (setq use-package-always-ensure t)
#+end_src #+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 * UI
The start-up message gets pretty annoying, so disable that. The start-up message gets pretty annoying, so disable that.