Elixir
A TextMate and Sublime Text Bundle for the Elixir programming language
Details
Installs
- Total 54K
- Win 10K
- Mac 30K
- Linux 14K
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 2 | 0 | 1 | 1 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 3 |
Mac | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 3 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 1 | 0 | 0 | 1 | 2 | 2 | 2 | 1 | 2 | 0 | 0 | 1 | 1 | 2 | 1 | 0 | 1 | 2 | 0 | 2 | 3 | 1 | 1 | 2 | 3 | 0 | 0 | 0 | 1 | 0 | 0 |
Linux | 0 | 1 | 1 | 1 | 2 | 0 | 0 | 1 | 3 | 3 | 1 | 1 | 0 | 5 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 2 | 3 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
Elixir.tmbundle
A TextMate / Sublime Text Bundle for the Elixir programming language.
It provides syntax highlighting, snippets, and keybindings. Contributions and extensions are welcome!
Note: For a package that provides tighter and more up-to-date integration with Sublime Text 4, see ElixirSyntax.
Installation
If you are using TextMate 2 you can install from Preferences → Bundles. To install manually type the following commands in your shell:
mkdir -p ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles
cd ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir.tmbundle
If you are using Sublime Text 3, type the following commands in your shell:
cd ~/.config/sublime-text-3/Packages # If you are on Linux
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages # If you are on OS X
cd %HOMEPATH%\AppData\Roaming\Sublime^ Text^ 3\Packages # If you are on Windows Vista or above
cd %HOMEPATH%\Application^ Data\Sublime^ Text^ 3\Packages # If you are on Windows XP
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir
You can now use Elixir's color syntax in files. In some cases, you should restart Sublime Text to make changes work.
Installation for outdated editors
Type the following commands to setup the bundle for TextMate 1:
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd !$
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir.tmbundle
cd Elixir.tmbundle
git checkout tm1
osascript -e 'tell app "TextMate" to reload bundles'
If you are using Sublime Text 2, type the following commands in your shell:
cd ~/.config/sublime-text-2/Packages # If you are on Linux
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages # If you are on OS X
cd %HOMEPATH%\AppData\Roaming\Sublime^ Text^ 2\Packages # If you are on Windows Vista or above
cd %HOMEPATH%\Application^ Data\Sublime^ Text^ 2\Packages # If you are on Windows XP
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir
cd Elixir
git checkout tm1
Code formatting for Sublime Text 3
Elixir v1.6 includes a code formatter. This package includes super+shift+c
as a keybinding to automatically save and format the current file you are working on. If the file has invalid syntax, an alert will appear.
You can also add your own keybindings as follows:
{ "keys": ["super+e"], "command": "mix_format_file" }
You can also set up the package to automatically format the file on save. To do this,
go to Preferences -> Package Settings -> Elixir -> Settings and add
"mix_format_on_save": true
.