diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-06 22:29:37 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-06 22:29:37 +0000 |
commit | 4cc9f223d8b5cffc303bb177eee960008fc2bf1e (patch) | |
tree | 3c2b3e6398f44790c3ca8832d58d6a0d64127ee2 /tools/emacs | |
parent | f8a9a87b2554ac2bd7127ab4c62c4fe5ce0afc28 (diff) | |
download | chromium_src-4cc9f223d8b5cffc303bb177eee960008fc2bf1e.zip chromium_src-4cc9f223d8b5cffc303bb177eee960008fc2bf1e.tar.gz chromium_src-4cc9f223d8b5cffc303bb177eee960008fc2bf1e.tar.bz2 |
Add emacs and vim helper config files for gyp settings.
Review URL: http://codereview.chromium.org/7300011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/emacs')
-rw-r--r-- | tools/emacs/chrome-filetypes.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/emacs/chrome-filetypes.el b/tools/emacs/chrome-filetypes.el new file mode 100644 index 0000000..14fc6bb --- /dev/null +++ b/tools/emacs/chrome-filetypes.el @@ -0,0 +1,16 @@ +; To get syntax highlighting and tab settings for gyp(i) files, add the +; following to init.el: +; (setq-default chrome-root "/path/to/chrome/src/") +; (add-to-list 'load-path (concat chrome-root "tools/emacs")) +; (require 'chrome-filetypes) + +(define-derived-mode gyp-mode python-mode "Gyp" + "Major mode for editing Generate Your Project files." + (setq indent-tabs-mode nil + tab-width 2 + python-indent 2)) + +(add-to-list 'auto-mode-alist '("\\.gyp$" . gyp-mode)) +(add-to-list 'auto-mode-alist '("\\.gypi$" . gyp-mode)) + +(provide 'chrome-filetypes) |