branch: elpa/jade-mode
commit fd8a4f3a098d1d6e3d4a39b4856b0cbfe9fda193
Merge: a1cbadd84d 41351ec293
Author: Brian Carlson <[email protected]>
Commit: Brian Carlson <[email protected]>
Merge pull request #7 from purcell/master
Add package dependencies for ELPA support
---
jade-mode.el | 13 ++++++++++---
stylus-mode.el | 14 ++++++++++----
sws-mode.el | 5 ++++-
3 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/jade-mode.el b/jade-mode.el
index 0d02cda65a..18af5515f5 100644
--- a/jade-mode.el
+++ b/jade-mode.el
@@ -1,9 +1,12 @@
-;;; jade-mode.el --- emacs major mode for editing .jade files
+;;; jade-mode.el --- Major mode for editing .jade files
+;;;
;;; URL: https://github.com/brianc/jade-mode
;;; Author: Brian M. Carlson and other contributors
+;;; Package-Requires: ((sws-mode "0"))
+;;;
;;; copied from http://xahlee.org/emacs/elisp_syntax_coloring.html
-;;; jade-mode.el ends here
(require 'font-lock)
+(require 'sws-mode)
(defun jade-debug (string &rest args)
"Prints a debug message"
@@ -44,6 +47,7 @@
;;(define-key jade-mode-map [S-tab] 'jade-unindent-line)
;; mode declaration
+;;;###autoload
(define-derived-mode jade-mode sws-mode
"Jade"
"Major mode for editing jade node.js templates"
@@ -68,6 +72,9 @@
;; highlight syntax
(setq font-lock-defaults '(jade-font-lock-keywords)))
-(provide 'jade-mode)
+;;;###autoload
(add-to-list 'auto-mode-alist '("\\.jade$" . jade-mode))
+
+(provide 'jade-mode)
+;;; jade-mode.el ends here
diff --git a/stylus-mode.el b/stylus-mode.el
index 452633c4fb..857b4b786a 100644
--- a/stylus-mode.el
+++ b/stylus-mode.el
@@ -1,9 +1,12 @@
-;;; stylus-mode.el --- emacs major mode for editing .jade files
+;;; stylus-mode.el --- Major mode for editing .jade files
+;;;
;;; URL: https://github.com/brianc/jade-mode
;;; Author: Brian M. Carlson and other contributors
+;;; Package-Requires: ((sws-mode "0"))
+;;;
;;; copied from http://xahlee.org/emacs/elisp_syntax_coloring.html
-;;; stylus-mode.el ends here
(require 'font-lock)
+(require 'sws-mode)
(defun stylus-debug (string &rest args)
"Prints a debug message"
@@ -65,6 +68,7 @@
;;(define-key stylus-mode-map [S-tab] 'stylus-unindent-line)
;; mode declaration
+;;;###autoload
(define-derived-mode stylus-mode sws-mode
"Stylus"
"Major mode for editing stylus node.js templates"
@@ -89,6 +93,8 @@
;; highlight syntax
(setq font-lock-defaults '(stylus-font-lock-keywords)))
-(provide 'stylus-mode)
-
+;;;###autoload
(add-to-list 'auto-mode-alist '("\\.styl$" . stylus-mode))
+
+(provide 'stylus-mode)
+;;; stylus-mode.el ends here
diff --git a/sws-mode.el b/sws-mode.el
index 9e8f1076bd..51dbcd137e 100644
--- a/sws-mode.el
+++ b/sws-mode.el
@@ -1,7 +1,8 @@
;;; sws-mode.el --- (S)ignificant (W)hite(S)pace mode
+;;;
;;; URL: https://github.com/brianc/jade-mode
;;; Author: Brian M. Carlson and other contributors
-;;; sws-mode.el ends here
+;;;
(require 'font-lock)
(defvar sws-tab-width 2)
@@ -114,6 +115,7 @@
(define-key sws-mode-map [S-tab] 'sws-dendent-line)
(define-key sws-mode-map [backtab] 'sws-dendent-line)
+;;;###autoload
(define-derived-mode sws-mode fundamental-mode
"sws"
"Major mode for editing significant whitespace files"
@@ -135,3 +137,4 @@
(setq major-mode 'sws-mode))
(provide 'sws-mode)
+;;; sws-mode.el ends here