             (when (and buffer-file-name
                        (buffer-modified-p))
               (save-buffer))))
-
-(cond (window-system
-       (server-start))
-      (t
-       '(xterm-mouse-mode)))
 
 ;; Help mode:
 (require 'help-mode)

(auto-compression-mode t)
(transient-mark-mode 1)
(show-paren-mode t)
(when window-system
  (global-hl-line-mode 1))


(defun my-set-major-mode ()
  "For temporary buffers, set the mode based on the name.
Defaults to text mode. Yasnippets won't be turned on for
