Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bound S-tab to unindent line

  • Loading branch information...
commit 555c0863bc7194e319d8f7ddb63490dd01dc340a 1 parent e8e2964
@brianc brianc authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 jade-mode.el
View
6 jade-mode.el
@@ -80,6 +80,9 @@
(,"\\(?:^[ {2,}]+\\(?:[a-z0-9_:\\-]*\\)\\)?\\(\\.[A-Za-z0-9\-\_]*\\)" 1 font-lock-function-name-face) ;; class name
(,"^[ {2,}]+[a-z0-9_:\\-]*" 0 font-lock-comment-face)))
+(defvar jade-mode-map (make-sparse-keymap))
+(define-key jade-mode-map [S-tab] 'jade-unindent-line)
+
;; mode declaration
(define-derived-mode jade-mode fundamental-mode
"Jade"
@@ -90,6 +93,9 @@
(setq mode-name "Jade")
(setq major-mode 'jade-mode)
+ ;; keymap
+ (use-local-map jade-mode-map)
+
;; highlight syntax
(setq font-lock-defaults '(jade-font-lock-keywords))
Please sign in to comment.
Something went wrong with that request. Please try again.