 (whole-line-or-region-mode)
 
 ;; From http://www.reddit.com/r/emacs/comments/25v0eo/you_emacs_tips_and_tricks/chldury
-(defun vsplit-last-buffer ()
+(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 hsplit-last-buffer ()
+  (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") 'vsplit-last-buffer)
-(global-set-key (kbd "C-x 3") 'hsplit-last-buffer)
+  (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 prelude-swap-windows ()
+(defun ar/swap-windows ()
   "If you have 2 windows, it swaps them."
   (interactive)
   (if (/= (count-windows) 2)


;; From https://github.com/purcell/emacs.d/blob/master/lisp/init-utils.el
(if (fboundp 'with-eval-after-load)
    (defalias 'ar/after-load 'with-eval-after-load)
  (defmacro ar/after-load (feature &rest body)
    "After FEATURE is loaded, evaluate BODY."
    (declare (indent defun))

(use-package discover :ensure t)

(use-package drag-stuff :ensure t)
(global-set-key (kbd "M-<up>") #'drag-stuff-up)
(global-set-key (kbd "M-<down>") #'drag-stuff-down)

;; Avoid creating lock files (ie. .#some-file.el)
(setq create-lockfiles nil)
