On 2014-09-23 14:05:50 -0500, David Champion wrote:
> Mutt's code uses 2-space indents, but 8 spaces become a tab.  (This is a
> traditional emacsism.)

I use:

;; No tabs for indentation
(defun no-indent-tabs ()
  (setq indent-tabs-mode nil)
)
(add-hook 'c-mode-hook 'no-indent-tabs)
(add-hook 'cperl-mode-hook 'no-indent-tabs)
(add-hook 'perl-mode-hook 'no-indent-tabs)
(add-hook 'emacs-lisp-mode-hook 'no-indent-tabs)
(add-hook 'lisp-mode-hook 'no-indent-tabs)
(add-hook 'nxml-mode-hook 'no-indent-tabs)
(add-hook 'java-mode-hook 'no-indent-tabs)
(add-hook 'sh-mode-hook 'no-indent-tabs)

to avoid that.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to