Ajout d'un fichier de config minimaliste pour emacs
This commit is contained in:
parent
ed09eeb7ec
commit
ba7cf80640
1 changed files with 38 additions and 0 deletions
38
emacs/minimal_config.el
Normal file
38
emacs/minimal_config.el
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
(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/")))
|
Loading…
Reference in a new issue