UP | HOME

Server Module

Table of Contents


Running Emacs as a server means that if I create a new instance of Emacs with the command emacs, I can then use the command emacsclient -c -n in order to quickly open a new Emacs buffer that is part of the same Emacs session.

Start Emacs Server

I have this option run only when I am not executing Emacs as a portable app as it is unlikely that there will be Emacs installed on the system that I am running Emacs on when I am using it as a portable application.

;; Start an Emacs server

(use-package server
  :straight (:type built-in)
  :if (not (freemacs/isportable-p))
  :config
  (unless (server-running-p)
    (server-start)))

End

Tell Emacs what feature this file provides.

(provide 'freemacs-server)

Date: Time-stamp: <2022-07-21 Thu 18:25>

Author: Thomas Freeman

Created: 2022-07-21 Thu 18:26

Validate