added rainbow-mode

This commit is contained in:
Bozhidar Batsov 2012-01-10 15:31:45 +02:00
parent 0530c9a833
commit 8e5022a509
3 changed files with 11 additions and 4 deletions

View file

@ -45,7 +45,8 @@
(defun prelude-emacs-lisp-mode-hook ()
(prelude-lisp-coding-hook)
(turn-on-eldoc-mode)
(prelude-remove-elc-on-save))
(prelude-remove-elc-on-save)
(rainbow-mode +1))
(add-hook 'emacs-lisp-mode-hook 'prelude-emacs-lisp-mode-hook)

View file

@ -46,7 +46,8 @@
(defvar prelude-packages
'(auctex clojure-mode coffee-mode deft gist groovy-mode haml-mode
haskell-mode inf-ruby markdown-mode paredit projectile
python sass-mode scss-mode solarized-theme yaml-mode yari zenburn-theme)
python sass-mode rainbow-mode scss-mode solarized-theme
yaml-mode yari zenburn-theme)
"A list of packages to ensure are installed at launch.")
(dolist (p prelude-packages)

View file

@ -71,9 +71,14 @@
(require 'haml-mode)
(require 'scss-mode)
(defun prelude-scss-mode-hook ()
;; indent like in Ruby
(defun prelude-css-mode-hook ()
(setq css-indent-offset 2)
(rainbow-mode +1))
(add-hook 'css-mode-hook 'prelude-css-mode-hook)
(defun prelude-scss-mode-hook ()
(prelude-css-mode-hook)
;; turn off annoying auto-compile on save
(setq scss-compile-at-save nil))