Browse Source

emacs.el: Change emacs server name according to emacs pid

pull/1/head
10sr 10 years ago
parent
commit
9d0c5c8a18
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      emacs.el

+ 7
- 0
emacs.el View File

@@ -884,6 +884,13 @@ found, otherwise returns nil."
(lazy-load-eval 'window-organizer) (lazy-load-eval 'window-organizer)
(define-key ctl-x-map (kbd "w") '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 ;; some modes and hooks




Loading…
Cancel
Save