antonj / scss-mode

Emacs mode for SCSS files (http://sass-lang.com)
200 stars 39 forks source link

Add a mode hook to allow custom settings. #22

Closed isonno closed 10 years ago

antonj commented 10 years ago

This hook already exist, even though it's not explicitly defined, is there any reason to define it like this? I run:

(defun aj-scss-mode-hook()
  (setq cssm-indent-function #'cssm-c-style-indenter)
  (rainbow-mode t))
(add-hook 'scss-mode-hook 'aj-scss-mode-hook)

And it works fine.

isonno commented 10 years ago

Hmm, it wasn't taking effect for me until I explicitly defined it. I'll double-check...

isonno commented 10 years ago

Hmm. Works now. "Never mind."