;; Define function to shutdown emacs server instance
;; Can be called from shell with: emacsclient -e '(server-shutdown)'
(defun server-shutdown ()
  "Save buffers, Quit, and Shutdown (kill) server"
  (interactive)
  (save-some-buffers)
  (kill-emacs)
  )

(server-start)

;; Define function to shutdown emacs server instance
;; Can be called from shell with: emacsclient -e '(server-shutdown)'
(defun server-shutdown ()
  "Save buffers, Quit, and Shutdown (kill) server"
  (interactive)
  (save-some-buffers)
  (kill-emacs)
  )

;; To start the emacs server, call:
;; (server-start)

Disable starting the server automatically
Disable starting the server automatically

peterhil/emacs-config