added rainbow-mode
This commit is contained in:
parent
0530c9a833
commit
8e5022a509
3 changed files with 11 additions and 4 deletions
|
@ -45,7 +45,8 @@
|
||||||
(defun prelude-emacs-lisp-mode-hook ()
|
(defun prelude-emacs-lisp-mode-hook ()
|
||||||
(prelude-lisp-coding-hook)
|
(prelude-lisp-coding-hook)
|
||||||
(turn-on-eldoc-mode)
|
(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)
|
(add-hook 'emacs-lisp-mode-hook 'prelude-emacs-lisp-mode-hook)
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
(defvar prelude-packages
|
(defvar prelude-packages
|
||||||
'(auctex clojure-mode coffee-mode deft gist groovy-mode haml-mode
|
'(auctex clojure-mode coffee-mode deft gist groovy-mode haml-mode
|
||||||
haskell-mode inf-ruby markdown-mode paredit projectile
|
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.")
|
"A list of packages to ensure are installed at launch.")
|
||||||
|
|
||||||
(dolist (p prelude-packages)
|
(dolist (p prelude-packages)
|
||||||
|
|
|
@ -71,9 +71,14 @@
|
||||||
(require 'haml-mode)
|
(require 'haml-mode)
|
||||||
(require 'scss-mode)
|
(require 'scss-mode)
|
||||||
|
|
||||||
(defun prelude-scss-mode-hook ()
|
(defun prelude-css-mode-hook ()
|
||||||
;; indent like in Ruby
|
|
||||||
(setq css-indent-offset 2)
|
(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
|
;; turn off annoying auto-compile on save
|
||||||
(setq scss-compile-at-save nil))
|
(setq scss-compile-at-save nil))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue