summary refs log tree commit diff
path: root/emacs.d/modules/module-codestyle.el
blob: 5a18b34224e46ed9b59da63630c21aed0a24bc48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(require 'config-package)

(setq show-paren-delay 0)

;; turn off tab indentation
(setq-default indent-tabs-mode nil)

;; when saving the file, ensure a newline exists at the end of the file
(setq require-final-newline t)

(use-package whitespace
  ;; highlight white spaces
  :config
  (setq whitespace-style '(face trailing))
  (add-hook 'prog-mode-hook 'whitespace-mode))

(add-hook 'prog-mode-hook
          (lambda () (setq show-trailing-whitespace t)))

(provide 'module-codestyle)