                       :background "default")
   ;; Automatically remove whitespace on saving.
   (add-hook 'before-save-hook 'whitespace-cleanup)
-  (global-whitespace-mode))
+  (add-hook 'prog-mode-hook 'whitespace-mode))
 
 (defun ar/compile-autoclose (buffer string)
   "Hide successful builds window with BUFFER and STRING."


(use-package company-emoji :ensure t)

(use-package emojify :ensure t
  :config
  (global-emojify-mode +1))

(use-package objc-mode
  :bind (:map objc-mode-map

  :config
  (advice-add 'sourcekit-project :around
              '--around-sourcekit-project)
  ;; (validate-setq sourcekit-sourcekittendaemon-executable
  ;;                (ar/assert (executable-find "sourcekittend")
  ;;                           "No sourcekittend found"))
  )

(use-package company-sourcekit :ensure t)

