       (replace-match (format " %s"
                              (downcase (match-string 0)))
                      t nil))))
-  (global-set-key (kbd "C-c l") 'ar/split-camel-region)
+(global-set-key (kbd "C-c l") 'ar/split-camel-region)
 
 ;; M-. elisp navigation.
 (use-package elisp-slime-nav


(defun ar/markdown-mode-hook-function ()
  "Called when entering `markdown-mode'."
  (setq markdown-indent-on-enter nil)
  (define-key markdown-mode-map (kbd "RET") 'electric-newline-and-maybe-indent))

(ar/add-functions-to-mode-hooks '(ar/prog-mode-hook-function)
                                '(prog-mode-hook))

  ;; ProductName: iPhone OS
  ;; ProductVersion: 7.1
  (set (make-local-variable 'compile-command)
       "xcodebuild -sdk iphonesimulator7.1 -target MyTarget")
  (local-set-key (kbd "<f7>") 'ar/xc:build)
  (local-set-key (kbd "<f8>") 'ar/xc:run))
(add-hook 'objc-mode-hook #'ar/objc-mode-hook-function)

(defun ar/java-mode-hook-function ()
  "Called when entering `java-mode'."
  ;; 100-column limit for java.
  (set-fill-column 100)
  ;; 2-char indent for java.
  (set (make-local-variable 'c-basic-offset) 2))
(add-hook 'java-mode-hook 'ar/java-mode-hook-function)

(defun ar/prog-mode-hook-function ()
