   "Called when entering `objc-mode'."
   (add-hook 'before-save-hook
             #'ar/clang-format-buffer
+            nil
+            'make-it-local)
+  (add-hook 'before-save-hook
+            #'ar/sort-objc-headers
             nil
             'make-it-local)
   (helm-dash-activate-docset "iOS")

  ;; Saving point to register enables jumping back to last change at any time.
  (ar/save-point))

(defun ar/clang-format-buffer ()
  "Clang format current buffer."
  (interactive)

;; Open gyp files in prog-mode.
(add-to-list 'auto-mode-alist '("\\.gyp\\'" . prog-mode))

;; TODO: Moving to bottom. Investigate what triggers tramp (and password prompt).
;; C-u magit-status presents list of repositories.
(eval-after-load "projectile"
