 (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
 
 
-;;; Disable backup files
+;;; General life improvements to emacs
+
+;; Disable backup files
 (setq make-backup-files nil) ; stop creating backup~ files
 (setq auto-save-default nil) ; stop creating #autosave# files
+
+;; Set locale to UTF8
+(set-language-environment 'utf-8)
+(set-terminal-coding-system 'utf-8)
+(setq locale-coding-system 'utf-8)
+(set-default-coding-systems 'utf-8)
+(set-selection-coding-system 'utf-8)
+(prefer-coding-system 'utf-8)
 
 ;; PATH
 (use-package exec-path-from-shell

                    :height 140 ;; this is 1/10 pt e.g. 140 = 14pt
                    :weight 'normal
                    :width 'normal)


;; add custom scripts to path

(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)


;; Programming life improvements

;; display relative line numbers for programming modes
(setq display-line-numbers-type 'relative)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
;; Auto-add parenthesis pair
(add-hook 'prog-mode-hook 'electric-pair-local-mode)

;; highlight current line
(global-hl-line-mode t)
;; focus help window
(setq help-window-select t)

;; multiple cursors
(use-package multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)

;;; Magit
;; getting errors until I installed magit-popup and with-editor
