Let editorconfig-emacs handle tab settings/delete-trailing-ws

This commit is contained in:
Henrik Lissner 2016-01-01 16:19:44 -05:00
parent 8880e3c0f4
commit b4458dd729
13 changed files with 11 additions and 41 deletions

View file

@ -69,10 +69,10 @@ enable multiple minor modes for the same regexp.")
(associate! emacs-lisp-mode :match "\\(/Cask\\|\\.\\(el\\|gz\\)\\)$")
(associate! makefile-gmake-mode :match "/Makefile$")
(associate! nxml-mode :match "\\.plist$")
(associate! conf-mode :match "/\\.?editorconfig$")
(add-hook! help-mode 'visual-line-mode)
(add-hook! special-mode (setq truncate-lines nil))
(add-hook! before-save 'delete-trailing-whitespace)
(add-hook! python-mode 'electric-indent-local-mode)
(add-hook! change-major-mode-hook
(when indent-tabs-mode (whitespace-mode +1)))
@ -134,7 +134,10 @@ enable multiple minor modes for the same regexp.")
aw-background t))
(use-package editorconfig
:config (editorconfig-mode +1))
:config
;; Don't affect lisp indentation (just `tab-width')
(setq editorconfig-indentation-alist (delq (assq 'emacs-lisp-mode editorconfig-indentation-alist) editorconfig-indentation-alist))
(editorconfig-mode +1))
(use-package emr
:commands (emr-initialize emr-show-refactor-menu emr-declare-command)