Emacs: added status message to toggle-indent-tabs

master
Pierre Neidhardt 2014-01-09 14:51:36 +01:00
parent 7fcc4cc0ba
commit 53ae5144c0
2 changed files with 5 additions and 2 deletions

View File

@ -328,7 +328,10 @@ region. Output result at the end after an ' = ' separtor."
(defun toggle-indent-tabs ()
(interactive)
(if indent-tabs-mode
(setq indent-tabs-mode nil)
(progn
(message "Indent using tabs")
(setq indent-tabs-mode nil))
(message "Indent using spaces")
(setq indent-tabs-mode t)))
(define-key my-keys-minor-mode-map (kbd "C-c C-i") 'toggle-indent-tabs)

View File

@ -103,7 +103,7 @@
;; WARNING: this can break some configuration files needing whitespaces at the
;; end.
; (add-hook 'before-save-hook 'delete-trailing-whitespace)
(setq whitespace-style (quote (face empty trailing tab-mark)))
(setq whitespace-style (quote (face trailing tab-mark)))
;; Does not seem to work properly.
; (setq whitespace-action '(report-on-bogus))