From b0a9184283a0de65d8cd2a668688bfadff9d404a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 10 Nov 2014 20:52:17 +0100 Subject: [PATCH] Show tabs in PHP code --- emacs/.emacs.d/init.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 492becb..d103983 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1100,6 +1100,20 @@ (add-hook 'php-mode-hook #'electric-indent-local-mode) #+END_SRC +*** Show tabs and spaces in indent + + I'm working with some WordPress plugins nowadays and their style + guide insists on using tabs, not spaces... I'd like to know that + I'm following this rule. + + #+BEGIN_SRC emacs-lisp + (defun oni:enable-whitespace-for-php () + (setq whitespace-style '(face tabs tab-mark)) + (whitespace-mode)) + + (add-hook 'php-mode-hook #'oni:enable-whitespace-for-php) + #+END_SRC + * Load custom file I don't really use the Emacs customization interface much, but I