chiark / gitweb /
dot/emacs: Various Emacs-server hacks.
[profile] / dot / emacs
index 51b0470adc2984a8297452bdbf03f9c037abba5d..2959e75d56b74a858736890d2a11860f30f4c587 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 
 ;; Emacs server behaviour.
 
-(and window-system
-     (trap (gnuserv-start)
-          (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$"))))
+(and (or window-system (>= emacs-major-version 23))
+     (progn (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$")
+                 gnuserv-frame t)
+           (trap (server-start))
+           (trap (gnuserv-start))))
 
 ;; Control backup behaviour.