From 9d0c5c8a184772953ceaa4b3735cbdd1548d89de Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 5 Dec 2014 12:07:32 +0900 Subject: [PATCH] emacs.el: Change emacs server name according to emacs pid --- emacs.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs.el b/emacs.el index e8f83da..8a05d9d 100644 --- a/emacs.el +++ b/emacs.el @@ -884,6 +884,13 @@ found, otherwise returns nil." (lazy-load-eval 'window-organizer) (define-key ctl-x-map (kbd "w") 'window-organizer)) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; server + +(lazy-load-eval 'server nil + (setq server-name (concat "server" + (number-to-string (emacs-pid))))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; some modes and hooks