Browse Source

fixed #29 - cannot insert tabs into Makefile

custom
Bozhidar Batsov 14 years ago
parent
commit
ef111dc966
  1. 6
      modules/prelude-c.el
  2. 4
      modules/prelude-core.el
  3. 3
      modules/prelude-editor.el

6
modules/prelude-c.el

@ -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

4
modules/prelude-core.el

@ -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)

3
modules/prelude-editor.el

@ -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)

Loading…
Cancel
Save