fixed #29 - cannot insert tabs into Makefile

This commit is contained in:
Bozhidar Batsov 2011-11-29 09:20:01 +02:00
parent 6d3d16fa39
commit ef111dc966
3 changed files with 9 additions and 4 deletions

View file

@ -40,6 +40,12 @@
;; java-mode, php-mode, etc ;; java-mode, php-mode, etc
(add-hook 'c-mode-common-hook 'prelude-c-mode-common-hook) (add-hook 'c-mode-common-hook 'prelude-c-mode-common-hook)
(defun prelude-makefile-mode-hook ()
(setq indent-tabs-mode t)
(setq tab-width 4))
(add-hook 'makefile-mode-hook 'prelude-makefile-mode-hook)
(provide 'prelude-c) (provide 'prelude-c)
;;; prelude-c.el ends here ;;; prelude-c.el ends here

View file

@ -324,7 +324,9 @@ there's a region, all lines that region covers will be duplicated."
(prelude-local-comment-auto-fill) (prelude-local-comment-auto-fill)
(prelude-turn-on-whitespace) (prelude-turn-on-whitespace)
(prelude-turn-on-abbrev) (prelude-turn-on-abbrev)
(prelude-add-watchwords)) (prelude-add-watchwords)
;; keep the whitespace decent all the time
(add-hook 'before-save-hook 'whitespace-cleanup nil t))
(defun prelude-untabify-buffer () (defun prelude-untabify-buffer ()
(interactive) (interactive)

View file

@ -169,9 +169,6 @@
(require 'yasnippet) (require 'yasnippet)
(yas/initialize) (yas/initialize)
;; keep the whitespace decent all the time
(add-hook 'before-save-hook 'whitespace-cleanup)
;; projectile is a project management mode ;; projectile is a project management mode
(require 'projectile) (require 'projectile)
(projectile-global-mode t) (projectile-global-mode t)