                           (setq tab-width 2 indent-tabs-mode 1)
                           (add-hook 'before-save-hook 'gofmt-before-save)))
 
-(server-start)
+(unless (server-running-p)
+  (server-start))
 
 ;; Customize vertical window divider:
 ;; Set symbol for the border.


;; Automatically closes brackets.
(electric-pair-mode)
(electric-indent-mode)

;; Highlight matching parenthesis.
(show-paren-mode)

;; Partially use path in buffer name.
(require 'uniquify)

;; displays hex strings representing colors
(use-package rainbow-mode
  :ensure t)
(rainbow-mode 1)

;; Activate smerge on conflicts.
(defun sm-try-smerge ()
