Simply go to Atom > Preferences > Packages, search for
Meteor Api, and install the package! Then just be sure to select
Atom LintAtom BeautifyAtom HandlebarsAtom JshintAtom PrettifyAutocompleteAutocomplete +Bracket MatcherFile TypesFiletype ColorGrammar SelectorLanguage SpacebarsMeteor ApiMeteor HelperWrap Guide
Then open your
config.cson file with Atom > Edit > Open Your Config and add the following under
'file-types':'html': 'text.html.spacebars''js': 'source.js'
Linter Handlebarsand install the package
Settingsto open its settings page and click on
Open in Atom
text.html.spacebarsto the list of supported syntaxes. At the time of writing this list appears on line 7: make sure it eventually looks like:
@syntax: ['text.html.handlebars', 'source.hbs', 'source.handlebars', 'text.html.spacebars']
Please be aware that you might need to repeat this editing operation everytime the package
Linter Handlebars gets updated.
If you haven't created a symlink for atom, try the following snippet to launch Atom from the command line.
# link your atom binary so it can be run from the command linesudo ln -s /Applications/Atom.app/Contents/MacOS/Atom /usr/local/bin/atom# open a filemeteor create helloworldcd helloworldatom helloworld.js
Want to make modifications? Take a look at your
~/.atom/packages directory. You should find
~/.atom/packages/meteor-api. Move that somewhere, and clone this repo where it used to be. (You'll want to fork it first to your own account.)
# download the meteor-api package to the correct locationcd ~/.atom/packagesmv meteor-api meteor-api-bkupgit clone http://github.com/damonmcminn/meteor-apicd meteor-api# make sure you're on a feature branchgit branchgit checkout -b syntax-highlighting# open a new atom editor in the current directory# we're using atom to hack on an atom package; spiffy recursive recursive!atom .
You'll then want to go into the
meteor-api/grammars/ directory and start hacking on
The hotkey command to reload the packages into Atom is
ctags -R . for extracting method definitions; add ctags file to meteor projects
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.