;;; init-whitespace.el --- Whitespace customizations -*- lexical-binding: t -*-

;;; Commentary:

;;; Code:

(require 'whitespace)

(setq inhibit-eol-conversion t) ; Highlight carriage returns.
(setq tab-stop-list (number-sequence 2 120 2))
(setq whitespace-style '(face tabs)) ; Highlight tabs.
(setq-default indent-tabs-mode nil)

(global-whitespace-mode 1)

(add-hook 'before-save-hook #'delete-trailing-whitespace)

(provide 'init-whitespace)

;;; init-whitespace.el ends here