From 9a0f3dae0a5113b04d6c40088e7e582f4ac0d7a1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 Mar 2017 22:41:45 +0100 Subject: Emacs: Remove unnecessary smart-tabs code --- tag-emacs/emacs.d/init.org | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index f7de888..114b2b6 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -748,18 +748,8 @@ with spaces. Perfect! (smart-tabs-insinuate 'c 'cperl 'python) (add-hook 'php-mode-hook (lambda () (smart-tabs-mode indent-tabs-mode))) - (with-eval-after-load "align.el" - (smart-tabs-mode/no-tabs-mode-advice align) - (smart-tabs-mode/no-tabs-mode-advice align-regexp)) - (eval-after-load "indent.el" - '(smart-tabs-mode/no-tabs-mode-advice indent-relative)) - (eval-after-load "newcomment.el" - '(progn (smart-tabs-mode/no-tabs-mode-advice comment-dwim) - (smart-tabs-mode/no-tabs-mode-advice comment-box) - (smart-tabs-mode/no-tabs-mode-advice comment-indent))) - - (unless - (ad-find-advice 'indent-according-to-mode 'around 'smart-tabs) + + (unless (ad-find-advice 'indent-according-to-mode 'around 'smart-tabs) (defadvice indent-according-to-mode (around smart-tabs activate) (if smart-tabs-mode (let ((indent-tabs-mode indent-tabs-mode)) -- cgit 1.4.1