 (use-package magit
   ;; https://github.com/magit/magit
   ;; An interface to the version control system Git
-  :bind (("C-x g" . magit-status)))
+  :bind (("C-x g" . magit-status))
+  :init (setq magit-display-buffer-function
+	      #'magit-display-buffer-same-window-except-diff-v1))
 
 ;;; ..:: Shell interaction ::..
 

	       (indent-for-tab-command)
	       (forward-line)))
	   (indent-for-tab-command)
	   (setq danylo/indent-char-min -1))))
      (apply orig-fun args)
      ;; Indent on first call so that cursor doesn't jump if just one newline
      (when danylo/indent~first~call (indent-for-tab-command)))))

(advice-add 'newline :around #'danylo/newline-with-indent)

;; Turn off Abbrev mode
(setq-default abbrev-mode nil)

(electric-indent-mode -1)

(defun danylo/fast-get-line ()
  "Get the line number at current point."
  (string-to-number (format-mode-line "%l")))

(defun danylo/fast-get-column ()
  "Get the column number at current point."
  (string-to-number (format-mode-line "%c")))

(defvar-local danylo/indent-char-min -1)
(defvar-local danylo/indent-string "")
(defvar-local danylo/indent-disable nil)

(defun danylo/newline-with-indent (orig-fun &rest args)
  "Maintain default-directory when eval-buffer. Automatically
indents the new lines jit-lock style in case of a rapid-fire
