summaryrefslogtreecommitdiffstats
path: root/roles/common/files/emacs.rc
blob: 70078dc2d8921e30143e95240a4f7ca5d0327968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
;; .emacs

(custom-set-variables
 ;; uncomment to always end a file with a newline
 '(require-final-newline t)
 ;; uncomment to disable loading of "default.el" at startup
 '(inhibit-default-init t)
 ;; default to unified diffs
 '(diff-switches "-u"))

;;; uncomment for CJK utf-8 support for non-Asian users
;; (require 'un-define)
(menu-bar-mode 0)
(display-battery-mode 1)

;; pour mutt:
;(server-start)
(add-to-list 'auto-mode-alist '("/mutt" . mail-mode))

;; Tabs is Evil
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)

;; Rend visible les tabs
;;(standard-display-ascii ?\t "^I")

;; Draw tabs with the same color as trailing whitespace
(add-hook 'font-lock-mode-hook
          (lambda ()
           (font-lock-add-keywords
            nil
            '(("\t" 0 'trailing-whitespace prepend)))))