Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix sass-mode load flymake-sass #76

Closed
wants to merge 1 commit into from

2 participants

@fourcels

No description provided.

@purcell
Owner

Thanks -- I decided to fix this directly in flymake-haml instead. :-)

@fourcels fourcels deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 24, 2013
  1. @fourcels
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 init-haml.el
View
8 init-haml.el
@@ -1,5 +1,11 @@
(require-package 'haml-mode)
(require-package 'flymake-haml)
-(add-hook 'haml-mode-hook 'flymake-haml-load)
+
+(defun maybe-flymake-haml-load ()
+ "Activate flymake-haml as necessary, but not in derived modes."
+ (when (eq major-mode 'haml-mode)
+ (flymake-haml-load)))
+
+(add-hook 'haml-mode-hook 'maybe-flymake-haml-load)
(provide 'init-haml)
Something went wrong with that request. Please try again.