From 4007ca81e0105119c8ed754e654a731934f5154c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Apr 2018 16:13:12 -0700 Subject: [emacs] Large refactoring. At first I wanted to add support for java, and then I realized that maintaining a giant file with all the packages was not working as I was expected. The configuration is broken down to multiple files now, with each major mode in a separate file, and the main modules in their own too. This should make it easier to maintain and organize. --- emacs.d/modules/module-codestyle.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 emacs.d/modules/module-codestyle.el (limited to 'emacs.d/modules/module-codestyle.el') diff --git a/emacs.d/modules/module-codestyle.el b/emacs.d/modules/module-codestyle.el new file mode 100644 index 0000000..5a18b34 --- /dev/null +++ b/emacs.d/modules/module-codestyle.el @@ -0,0 +1,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) -- cgit 1.4.1