 (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 ::..
 

 "C-x -" 'split-window-below
 "C-x |" 'split-window-right)

;;;; >> Resizing windows <<

(use-package windsize

	       (indent-for-tab-command)
	       (forward-line)))
	   (indent-for-tab-command)
	   (setq danylo/indent-char-min -1
		 danylo/indent-string ""))))
      (apply orig-fun args)
      (insert danylo/indent-string)
      ;; (dotimes (_ danylo/indent-amount) (insert " "))
      ;; Indent on first call so that cursor doesn't jump if just one newline
      (when danylo/indent~first~call
	(indent-for-tab-command)
	(save-excursion
	  (let ((pt-now (point)))
	    (forward-line 0)
	    (let ((pt-start (point)))
	      (setq danylo/indent-string (buffer-substring pt-start pt-now))
	      ))))
      )))

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

;; Make region selection faster
;; https://emacs.stackexchange.com/a/61764/13661
(setq select-active-regions nil)

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