 (use-package magit :ensure t)
 ;; Use vc-ediff as default.
 (eval-after-load "vc-hooks"
-  '(define-key vc-prefix-map "=" 'vc-ediff))
-(global-set-key (kbd "C-x g") 'magit-status)
-(setq magit-status-buffer-switch-function 'switch-to-buffer)
+  '(define-key vc-prefix-map "=" #'vc-ediff))
+(global-set-key (kbd "C-x g") #'magit-status)
+(setq magit-status-buffer-switch-function #'switch-to-buffer)
 
 (defun ar/sort-lines-ignore-case ()
   "Sort region (case-insensitive)."
   (interactive)
   (let ((sort-fold-case t))
-    (call-interactively 'sort-lines)))
+    (call-interactively #'sort-lines)))
 ;; Sort lines (ie. package imports or headers).
-(global-set-key (kbd "M-s l") 'ar/sort-lines-ignore-case)
+(global-set-key (kbd "M-s l") #'ar/sort-lines-ignore-case)
 
 (setq css-indent-offset 2)
 

;; Do not auto cd to working directory.
(setq shell-pop-autocd-to-working-dir nil)

(global-set-key [f5] 'shell-pop)
(use-package shell-pop :ensure t)

(defun ar/comment-dwim ()

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

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