X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/c14ce5af75c55213cbb86fc96231dcb7476a7b7e..7cd3318bec2f596106ad48f9b5b191b37148aea1:/dot/emacs diff --git a/dot/emacs b/dot/emacs index d79aeeb..845f1ff 100644 --- a/dot/emacs +++ b/dot/emacs @@ -86,9 +86,10 @@ ;; 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)) + (trap (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$")) + (start-server) + (gnuserv-start))) ;; Control backup behaviour.