Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: dart/tools/utils/elisp/dart-mode.el

Issue 8306026: Landing http://codereview.chromium.org/8258017/ on behalf of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ;;; dart-mode.el --- a Dart mode for emacs based upon CC mode. 1 ;;; dart-mode.el --- a Dart mode for emacs based upon CC mode.
2 2
3 ;; This program is free software; you can redistribute it and/or modify 3 ;; This program is free software; you can redistribute it and/or modify
4 ;; it under the terms of the GNU General Public License as published by 4 ;; it under the terms of the GNU General Public License as published by
5 ;; the Free Software Foundation; either version 2 of the License, or 5 ;; the Free Software Foundation; either version 2 of the License, or
6 ;; (at your option) any later version. 6 ;; (at your option) any later version.
7 ;; 7 ;;
8 ;; This program is distributed in the hope that it will be useful, 8 ;; This program is distributed in the hope that it will be useful,
9 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 9 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 Key bindings: 137 Key bindings:
138 \\{dart-mode-map}" 138 \\{dart-mode-map}"
139 (interactive) 139 (interactive)
140 (kill-all-local-variables) 140 (kill-all-local-variables)
141 (c-initialize-cc-mode t) 141 (c-initialize-cc-mode t)
142 (set-syntax-table dart-mode-syntax-table) 142 (set-syntax-table dart-mode-syntax-table)
143 (setq major-mode 'dart-mode 143 (setq major-mode 'dart-mode
144 mode-name "Dart" 144 mode-name "Dart"
145 local-abbrev-table dart-mode-abbrev-table 145 local-abbrev-table dart-mode-abbrev-table
146 abbrev-mode t) 146 abbrev-mode t)
147 (use-local-map c-mode-map) 147 (use-local-map dart-mode-map)
148 ;; `c-init-language-vars' is a macro that is expanded at compile 148 ;; `c-init-language-vars' is a macro that is expanded at compile
149 ;; time to a large `setq' with all the language variables and their 149 ;; time to a large `setq' with all the language variables and their
150 ;; customized values for our language. 150 ;; customized values for our language.
151 (c-init-language-vars dart-mode) 151 (c-init-language-vars dart-mode)
152 ;; `c-common-init' initializes most of the components of a CC Mode 152 ;; `c-common-init' initializes most of the components of a CC Mode
153 ;; buffer, including setup of the mode menu, font-lock, etc. 153 ;; buffer, including setup of the mode menu, font-lock, etc.
154 ;; There's also a lower level routine `c-basic-common-init' that 154 ;; There's also a lower level routine `c-basic-common-init' that
155 ;; only makes the necessary initialization to get the syntactic 155 ;; only makes the necessary initialization to get the syntactic
156 ;; analysis and similar things working. 156 ;; analysis and similar things working.
157 (c-common-init 'dart-mode) 157 (c-common-init 'dart-mode)
158 (easy-menu-add dart-menu) 158 (easy-menu-add dart-menu)
159 (run-hooks 'c-mode-common-hook) 159 (run-hooks 'c-mode-common-hook)
160 (run-hooks 'dart-mode-hook) 160 (run-hooks 'dart-mode-hook)
161 (c-update-modeline)) 161 (c-update-modeline))
162 162
163 (provide 'dart-mode) 163 (provide 'dart-mode)
164 164
165 ;;; dart-mode.el ends here 165 ;;; dart-mode.el ends here
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698