                                (auto-dim-other-buffers-mode t))))
 
 (use-package key-chord :ensure t)
-(key-chord-define-global "jj" 'ace-jump-char-mode)
-(key-chord-define-global "jk" 'ace-jump-char-mode)
-(key-chord-define-global "jl" 'ace-jump-line-mode)
-(key-chord-define-global "xx" 'execute-extended-command)
-(key-chord-define-global "kk" 'kill-whole-line)
+(key-chord-define-global "jj" #'ace-jump-char-mode)
+(key-chord-define-global "jk" #'ace-jump-char-mode)
+(key-chord-define-global "jl" #'ace-jump-line-mode)
+(key-chord-define-global "xx" #'execute-extended-command)
+(key-chord-define-global "kk" #'kill-whole-line)
 
 ;; From http://emacsredux.com/blog/2013/04/28/switch-to-previous-buffer
 (defun ar/switch-to-previous-buffer ()

  ;; 100-column limit for java.
  (set-fill-column 100))

(add-hook 'java-mode-hook 'ar/java-mode-hook-function)

(defun ar/prog-mode-hook-function ()
  "Called when entering all programming modes."
  (add-hook 'after-change-functions
            'ar/after-prog-mode-text-change
            t t)
  (let ((m prog-mode-map))
    (define-key m [f6] 'recompile))
  ;; Show trailing whitespace.
  (set (make-local-variable 'show-trailing-whitespace) t)
  ;; Spellcheck comments and documentation

                          (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))
