 ;; reload file when it changed (and the buffer has no changes)
 (global-auto-revert-mode 1)
 
-;; indentation
-(setq-default tab-width 2)
-(setq-default indent-tabs-mode nil)
-;; automatically turn on indenting
-(electric-indent-mode 1)
-;; also when yanked
-(defun yank-and-indent ()
-  "Yank and then indent the newly formed region according to mode."
-  (interactive)
-  (yank)
-  (call-interactively 'indent-region))
-(global-set-key "\C-y" 'yank-and-indent)
 
 ; mark stuff like FIXME
 (require 'fic-mode)

(global-set-key (kbd "C-c d") 'mc/edit-lines)
(global-set-key (kbd "<C-down>") 'mc/mark-next-like-this)
(global-set-key (kbd "<C-up>") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-d") 'mc/mark-all-dwim)
(global-set-key (kbd "C-c >") 'mc/mark-more-like-this-extended)
(global-set-key (kbd "C-c <") 'mc/mark-more-like-this-extended)



(setq org-completion-use-ido t)

;; indentation
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
;; automatically turn on indenting
(electric-indent-mode 1)
;; also when yanked
(defun yank-and-indent ()
  "Yank and then indent the newly formed region according to mode."
  (interactive)
  (yank)
  (call-interactively 'indent-region))
(global-set-key "\C-y" 'yank-and-indent)


;; Flycheck for code linting
(add-hook 'after-init-hook #'global-flycheck-mode)
