 
 ;; Do not auto indent current line when pressing <RET>.
 (add-hook 'sgml-mode-hook
-          (lambda() (local-set-key (kbd "<RET>") 'electric-indent-just-newline)))
+          (lambda() (local-set-key (kbd "<RET>") #'electric-indent-just-newline)))
 
 (use-package multiple-cursors :ensure t)
 (multiple-cursors-mode)
-(global-set-key (kbd "C-c n") 'mc/mark-next-like-this)
-(global-set-key (kbd "C-c a") 'mc/mark-all-like-this)
-
-(defun prelude-smart-open-line (arg)
+(global-set-key (kbd "C-c n") #'mc/mark-next-like-this)
+(global-set-key (kbd "C-c a") #'mc/mark-all-like-this)
+
+(defun ar/smart-open-line (arg)
   "Insert an empty line after the current line.
 Position the cursor at its beginning, according to the current mode.
 With a prefix ARG open line above the current line."
   (interactive "P")
   (if arg
-      (prelude-smart-open-line-above)
+      (ar/smart-open-line-above)
     (progn
       (move-end-of-line nil)
       (newline-and-indent))))
 
-(global-set-key (kbd "C-o") 'prelude-smart-open-line)
+(global-set-key (kbd "C-o") #'ar/smart-open-line)
 
 (use-package ace-jump-mode :ensure t)
 


(defun ar/smerge-mode-hook-function ()
  "Called when entering smerge mode."
  (local-set-key (kbd "C-c h") 'hydra-smerge/body)
  (hydra-smerge/body))
(add-hook 'smerge-mode-hook #'ar/smerge-mode-hook-function)


(whole-line-or-region-mode)

;; From http://www.reddit.com/r/emacs/comments/25v0eo/you_emacs_tips_and_tricks/chldury
(defun ar/vsplit-last-buffer ()
  "Vertically splitting the screen and open the previous buffer instead of identical buffers."
  (interactive)
  (split-window-vertically)
  (other-window 1 nil)
  (switch-to-next-buffer))

(defun ar/hsplit-last-buffer ()
  "Horizontally splitting the screen and open the previous buffer instead of identical buffers."
  (interactive)
  (split-window-horizontally)
  (other-window 1 nil)
  (switch-to-next-buffer))

(global-set-key (kbd "C-x 2") #'ar/vsplit-last-buffer)
(global-set-key (kbd "C-x 3") #'ar/hsplit-last-buffer)

;; Thank you Bozhidar.
;; From https://github.com/bbatsov/prelude/blob/a52cdc83eeec567b13a8a5719a174dfe294ee739/core/prelude-core.el#L340
(defun ar/swap-windows ()
  "If you have 2 windows, it swaps them."
  (interactive)
  (if (/= (count-windows) 2)
