   ;; ProductCopyright: 1983-2014 Apple Inc.
   ;; ProductName: iPhone OS
   ;; ProductVersion: 7.1
-  (set (make-local-variable 'compile-command)
+  (setq-local compile-command
        "xcodebuild -sdk iphonesimulator7.1 -target MyTarget")
   (local-set-key (kbd "<f7>")
                  #'ar/xc:build)


(defun ar/markdown-mode-hook-function ()
  "Called when entering `markdown-mode'."
  (set (make-local-variable 'markdown-indent-on-enter) nil)
  (local-set-key (kbd "RET")
                 #'electric-newline-and-maybe-indent))


(use-package company-go :ensure t)
(add-hook 'go-mode-hook (lambda ()
                          (helm-dash-activate-docset "Go")
                          (setq-local company-backends '(company-go))
                          (company-mode)
                          (setq tab-width 2 indent-tabs-mode 1)
                          (add-hook 'before-save-hook #'gofmt-before-save)))
