dot/emacs: Inhibit server from raising windows.
[profile] / dot / emacs
index 3c213b9..da7d116 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (require 'paren)
 (trap (show-paren-mode t))
 (or window-system (mdw-emacs-version-p 22) (menu-bar-mode -1))
-(setq x-select-enable-clipboard nil
-      x-select-enable-primary t
-      mouse-drag-copy-region t)
+(if (eq window-system 'x)
+    (setq x-select-enable-clipboard nil
+         x-select-enable-primary t))
+(setq mouse-drag-copy-region t)
 
 ;; Multiple cursors.
 
      (not (and (fboundp 'daemonp) (daemonp)))
      (progn (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$")
                  edit-server-new-frame nil
+                 server-raise-frame nil
                  gnuserv-frame t)
            (trap (let ((warning-suppress-types
                         (cons '(server)
 (setq linum-format "%7d ")
 (setq next-line-add-newlines nil)      ;Don't add weird newlines
 (setq split-height-threshold nil)      ;Reuse windows where sensible
+(setq compilation-scroll-output 'first-error)
 (setq iswitchb-default-method 'samewindow ;Don't confuse me by showing
       ido-default-file-method 'selected-window ;buffers in other random
       ido-default-buffer-method 'selected-window) ;frames