   `(buffer-substring (point-at-bol) (point-at-eol)))
 
 
-(defun jade-indent-line ()
-  "Indents current line")
-
-(defun jade-previous-indentation ()
-  "Gets indentation for previous line"
-  (save-excursion
-    (previous-line)
-    (current-indentation)))
-
-(defun jade-should-indent-p ()
-  "Whether or not line should be indented."
-  ;; should only indent if previous line is indented at most one less
-  (> (jade-previous-indentation) (- (current-indentation) 1)))
-
 (defun jade-empty-line-p ()
   "If line is empty or not."
   (= (point-at-eol) (point-at-bol)))

;; copied from http://xahlee.org/emacs/elisp_syntax_coloring.html
(require 'font-lock)

(defvar jade-tab-width 2)

(defun jade-debug (string &rest args)
  "Prints a debug message"

  (setq mode-name "Jade")
  (setq major-mode 'jade-mode)

  ;; default tab width
  (setq sws-tab-width 2)
  (make-local-variable 'indent-line-function)
  (setq indent-line-function 'sws-indent-line)
  (make-local-variable 'indent-region-function)

  (setq indent-region-function 'sws-indent-region)


  ;; keymap
  (use-local-map jade-mode-map)

  ;; highlight syntax
  (setq font-lock-defaults '(jade-font-lock-keywords)))

(provide 'jade-mode)

