Skip to content

Commit

Permalink
Configured rainbow-mode for css-mode to show colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshk committed Sep 10, 2014
1 parent 97f9118 commit ede480c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions startup-packages.el
Expand Up @@ -28,6 +28,7 @@
projectile
python
rainbow-delimiters
rainbow-mode
scala-mode
slime
solarized-theme
Expand Down
5 changes: 5 additions & 0 deletions startup.el
Expand Up @@ -124,6 +124,11 @@
ad-do-it)
ad-do-it))

;; CSS
(add-hook 'css-mode-hook 'my-css-mode-hook)
(defun my-css-mode-hook ()
(rainbow-mode 1))

;; PHP
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-hook 'php-mode-hook
Expand Down

0 comments on commit ede480c

Please sign in to comment.