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

Side by Side Diff: tools/emacs/chrome-filetypes.el

Issue 7300011: Add emacs and vim helper config files for gyp settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: emacs Created 9 years, 5 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 | « no previous file | tools/vim/filetypes.vim » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; To get syntax highlighting and tab settings for gyp(i) files, add the
2 ; following to init.el:
3 ; (setq-default chrome-root "/path/to/chrome/src/")
4 ; (add-to-list 'load-path (concat chrome-root "tools/emacs"))
5 ; (require 'chrome-filetypes)
6
7 (define-derived-mode gyp-mode python-mode "Gyp"
8 "Major mode for editing Generate Your Project files."
9 (setq indent-tabs-mode nil
10 tab-width 2
11 python-indent 2))
12
13 (add-to-list 'auto-mode-alist '("\\.gyp$" . gyp-mode))
14 (add-to-list 'auto-mode-alist '("\\.gypi$" . gyp-mode))
15
16 (provide 'chrome-filetypes)
OLDNEW
« no previous file with comments | « no previous file | tools/vim/filetypes.vim » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698