| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |