branch: elpa/dart-mode
commit f5097c032b0d620ce0b0aa02345578fadeabc4d6
Author: Nathan Weizenbaum <[email protected]>
Commit: Nathan Weizenbaum <[email protected]>

    Add a dart-mode-map.
---
 dart-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dart-mode.el b/dart-mode.el
index 2db17e2..44649fc 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -190,6 +190,9 @@
 
 (c-add-style "dart" dart-c-style)
 
+(defvar dart-mode-map (c-make-inherited-keymap)
+  "Keymap used in dart-mode buffers.")
+
 
 ;;; CC indentation support
 
@@ -310,6 +313,7 @@ Key bindings:
   (set-syntax-table dart-mode-syntax-table)
   (setq major-mode 'dart-mode
         mode-name "Dart")
+  (use-local-map dart-mode-map)
   (c-init-language-vars dart-mode)
   (let ((c-default-style '((dart-mode . "dart"))))
     (c-common-init 'dart-mode))

Reply via email to