 
 ;; Do not auto indent current line when pressing <RET>.
 (add-hook 'sgml-mode-hook
-          (lambda() (local-set-key (kbd "<RET>") 'electric-indent-just-newline)))
+          (lambda() (local-set-key (kbd "<RET>") #'electric-indent-just-newline)))
 
 (use-package multiple-cursors :ensure t)
 (multiple-cursors-mode)
-(global-set-key (kbd "C-c n") 'mc/mark-next-like-this)
-(global-set-key (kbd "C-c a") 'mc/mark-all-like-this)
-
-(defun prelude-smart-open-line (arg)
+(global-set-key (kbd "C-c n") #'mc/mark-next-like-this)
+(global-set-key (kbd "C-c a") #'mc/mark-all-like-this)
+
+(defun ar/smart-open-line (arg)
   "Insert an empty line after the current line.
 Position the cursor at its beginning, according to the current mode.
 With a prefix ARG open line above the current line."
   (interactive "P")
   (if arg
-      (prelude-smart-open-line-above)
+      (ar/smart-open-line-above)
     (progn
       (move-end-of-line nil)
       (newline-and-indent))))
 
-(global-set-key (kbd "C-o") 'prelude-smart-open-line)
+(global-set-key (kbd "C-o") #'ar/smart-open-line)
 
 (use-package ace-jump-mode :ensure t)
 


(defun ar/ediff-bsh ()
  "Function to be called before any buffers or window setup for ediff."
  (remove-hook 'ediff-quit-hook 'ediff-cleanup-mess)
  (window-configuration-to-register ar/ediff-bwin-reg))

(defun ar/ediff-aswh ()
  "Setup hook used to remove the `ediff-cleanup-mess' function.  It causes errors."
  (remove-hook 'ediff-quit-hook 'ediff-cleanup-mess))

(defun ar/ediff-qh ()
  "Function to be called when ediff quits."
  (remove-hook 'ediff-quit-hook 'ediff-cleanup-mess)
  (ediff-cleanup-mess)
  (jump-to-register ar/ediff-bwin-reg))

(add-hook 'ediff-before-setup-hook 'ar/ediff-bsh)
(add-hook 'ediff-after-setup-windows-hook 'ar/ediff-aswh);
(add-hook 'ediff-quit-hook 'ar/ediff-qh)

;; Highlight lines longer than 100 columns.
(require 'whitespace)

                          (set (make-local-variable 'company-backends) '(company-go))
                          (company-mode)
                          (setq tab-width 2 indent-tabs-mode 1)
                          (add-hook 'before-save-hook #'gofmt-before-save)))

(unless (server-running-p)
  (server-start))
