diff --git a/extra/haml-mode.el b/extra/haml-mode.el index 0c04c7d7..dcb5f583 100644 --- a/extra/haml-mode.el +++ b/extra/haml-mode.el @@ -114,16 +114,11 @@ (define-key haml-mode-map "\C-?" 'haml-electric-backspace) (define-key haml-mode-map "\C-j" 'newline-and-indent)) -(defvar sample-font-lock-keywords - '(("function \\(\\sw+\\)" (1 font-lock-function-name-face))) - "Keyword highlighting specification for `sample-mode'.") - (define-derived-mode haml-mode fundamental-mode "Haml" "Simple mode to edit Haml. \\{haml-mode-map}" (set (make-local-variable 'indent-line-function) 'haml-indent-line) - (set (make-local-variable 'font-lock-defaults) '(sample-font-lock-keywords)) (make-local-variable 'font-lock-defaults) (setq font-lock-defaults '((haml-font-lock-keywords-1) diff --git a/extra/sass-mode.el b/extra/sass-mode.el index 271b0bac..2c636ed2 100644 --- a/extra/sass-mode.el +++ b/extra/sass-mode.el @@ -81,16 +81,11 @@ (define-key sass-mode-map "\C-?" 'sass-electric-backspace) (define-key sass-mode-map "\C-j" 'newline-and-indent)) -(defvar sample-font-lock-keywords - '(("function \\(\\sw+\\)" (1 font-lock-function-name-face))) - "Keyword highlighting specification for `sample-mode'.") - (define-derived-mode sass-mode fundamental-mode "Sass" "Simple mode to edit Sass. \\{sass-mode-map}" - (set (make-local-variable 'indent-line-function) 'sass-indent-line) - (set (make-local-variable 'font-lock-defaults) '(sample-font-lock-keywords))) + (set (make-local-variable 'indent-line-function) 'sass-indent-line)) ;; Indentation and electric keys