(set-language-environment "UTF-8")

(delete-selection-mode t)
(column-number-mode t)                    ; column number
(setq initial-scratch-message nil)        ; no scrach
(setq inhibit-startup-message t)          ; no startup mesage
(setq truncate-partial-width-windows nil) ; don't truncate line
(setq-default indent-tabs-mode nil)       ; space instead of tab
(global-font-lock-mode t)                 ; coloration syntaxique
(show-paren-mode 1)                       ; show paren
(setq visible-bell t)                     ; disable bib
(fset 'yes-or-no-p 'y-or-n-p)             ; y-n instead of yes-no
(put 'downcase-region 'disabled nil)      ; can use C-x C-l
(put 'upcase-region 'disabled nil)        ; can use C-x C-u
(put 'narrow-to-region 'disabled nil)     ; can use C-x n n
(put 'set-goal-column 'disabled nil)      ; can use C-x C-n
(put 'erase-buffer 'disabled nil)         ; erase buffer
(setq fill-column 79)                     ; fill column !
(setq make-backup-files nil)              ; no backup file

;; (cua-selection-mode t)                    ; cua for selection
;; (ido-mode t)                              ; ido mode

(define-key function-key-map [(super tab)] [?\M-\t])

(menu-bar-mode -1)
;; for UI
;; (tool-bar-mode -1)
;; (scroll-bar-mode -1)


;; Good default theme?
;; (load-theme 'deeper-blue)

;; Set package
;; http://www.emacswiki.org/emacs/ELPA
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
                         ("melpa" . "https://melpa.org/packages/")))
