ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Elixir

A TextMate and Sublime Text Bundle for the Elixir programming language

Details

Installs

  • Total 55K
  • Win 10K
  • Mac 31K
  • Linux 14K
Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17
Windows 0 1 0 1 1 0 0 0 1 0 0 0 2 0 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 1 2 0 2 1 1 1 0 1 0 0 0 0 1 0 2 0
Mac 0 0 0 2 1 0 2 2 0 0 3 2 0 2 1 0 3 1 1 2 2 3 1 2 3 0 1 0 0 1 0 1 1 0 1 2 0 0 0 1 1 3 0 2 1 1
Linux 2 2 1 2 1 1 1 2 1 0 3 0 0 2 5 1 1 1 2 2 1 0 1 0 2 2 2 2 5 0 0 1 1 0 0 1 1 0 0 2 1 0 0 0 0 1
0246Jun 1May 29May 26May 23May 20May 17May 14May 11May 8May 5May 2Apr 29Apr 26Apr 23Apr 20Apr 17Jun 1 Linux: 2 Mac: 0 Windows: 0May 31 Linux: 2 Mac: 0 Windows: 1May 30 Linux: 1 Mac: 0 Windows: 0May 29 Linux: 2 Mac: 2 Windows: 1May 28 Linux: 1 Mac: 1 Windows: 1May 27 Linux: 1 Mac: 0 Windows: 0May 26 Linux: 1 Mac: 2 Windows: 0May 25 Linux: 2 Mac: 2 Windows: 0May 24 Linux: 1 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 3 Mac: 3 Windows: 0May 21 Linux: 0 Mac: 2 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 2May 19 Linux: 2 Mac: 2 Windows: 0May 18 Linux: 5 Mac: 1 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 0May 16 Linux: 1 Mac: 3 Windows: 1May 15 Linux: 1 Mac: 1 Windows: 0May 14 Linux: 2 Mac: 1 Windows: 0May 13 Linux: 2 Mac: 2 Windows: 1May 12 Linux: 1 Mac: 2 Windows: 1May 11 Linux: 0 Mac: 3 Windows: 1May 10 Linux: 1 Mac: 1 Windows: 1May 9 Linux: 0 Mac: 2 Windows: 0May 8 Linux: 2 Mac: 3 Windows: 0May 7 Linux: 2 Mac: 0 Windows: 1May 6 Linux: 2 Mac: 1 Windows: 0May 5 Linux: 2 Mac: 0 Windows: 0May 4 Linux: 5 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 1 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 2May 1 Linux: 1 Mac: 1 Windows: 0Apr 30 Linux: 1 Mac: 1 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 1Apr 28 Linux: 0 Mac: 1 Windows: 1Apr 27 Linux: 1 Mac: 2 Windows: 1Apr 26 Linux: 1 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 1Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 2 Mac: 1 Windows: 0Apr 22 Linux: 1 Mac: 1 Windows: 0Apr 21 Linux: 0 Mac: 3 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 1Apr 19 Linux: 0 Mac: 2 Windows: 0Apr 18 Linux: 0 Mac: 1 Windows: 2Apr 17 Linux: 1 Mac: 1 Windows: 0Jun 1 Linux: 2 Mac: 0 Windows: 0May 31 Linux: 2 Mac: 0 Windows: 1May 30 Linux: 1 Mac: 0 Windows: 0May 29 Linux: 2 Mac: 2 Windows: 1May 28 Linux: 1 Mac: 1 Windows: 1May 27 Linux: 1 Mac: 0 Windows: 0May 26 Linux: 1 Mac: 2 Windows: 0May 25 Linux: 2 Mac: 2 Windows: 0May 24 Linux: 1 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 3 Mac: 3 Windows: 0May 21 Linux: 0 Mac: 2 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 2May 19 Linux: 2 Mac: 2 Windows: 0May 18 Linux: 5 Mac: 1 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 0May 16 Linux: 1 Mac: 3 Windows: 1May 15 Linux: 1 Mac: 1 Windows: 0May 14 Linux: 2 Mac: 1 Windows: 0May 13 Linux: 2 Mac: 2 Windows: 1May 12 Linux: 1 Mac: 2 Windows: 1May 11 Linux: 0 Mac: 3 Windows: 1May 10 Linux: 1 Mac: 1 Windows: 1May 9 Linux: 0 Mac: 2 Windows: 0May 8 Linux: 2 Mac: 3 Windows: 0May 7 Linux: 2 Mac: 0 Windows: 1May 6 Linux: 2 Mac: 1 Windows: 0May 5 Linux: 2 Mac: 0 Windows: 0May 4 Linux: 5 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 1 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 2May 1 Linux: 1 Mac: 1 Windows: 0Apr 30 Linux: 1 Mac: 1 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 1Apr 28 Linux: 0 Mac: 1 Windows: 1Apr 27 Linux: 1 Mac: 2 Windows: 1Apr 26 Linux: 1 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 1Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 2 Mac: 1 Windows: 0Apr 22 Linux: 1 Mac: 1 Windows: 0Apr 21 Linux: 0 Mac: 3 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 1Apr 19 Linux: 0 Mac: 2 Windows: 0Apr 18 Linux: 0 Mac: 1 Windows: 2Apr 17 Linux: 1 Mac: 1 Windows: 0Jun 1 Linux: 2 Mac: 0 Windows: 0May 31 Linux: 2 Mac: 0 Windows: 1May 30 Linux: 1 Mac: 0 Windows: 0May 29 Linux: 2 Mac: 2 Windows: 1May 28 Linux: 1 Mac: 1 Windows: 1May 27 Linux: 1 Mac: 0 Windows: 0May 26 Linux: 1 Mac: 2 Windows: 0May 25 Linux: 2 Mac: 2 Windows: 0May 24 Linux: 1 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 3 Mac: 3 Windows: 0May 21 Linux: 0 Mac: 2 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 2May 19 Linux: 2 Mac: 2 Windows: 0May 18 Linux: 5 Mac: 1 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 0May 16 Linux: 1 Mac: 3 Windows: 1May 15 Linux: 1 Mac: 1 Windows: 0May 14 Linux: 2 Mac: 1 Windows: 0May 13 Linux: 2 Mac: 2 Windows: 1May 12 Linux: 1 Mac: 2 Windows: 1May 11 Linux: 0 Mac: 3 Windows: 1May 10 Linux: 1 Mac: 1 Windows: 1May 9 Linux: 0 Mac: 2 Windows: 0May 8 Linux: 2 Mac: 3 Windows: 0May 7 Linux: 2 Mac: 0 Windows: 1May 6 Linux: 2 Mac: 1 Windows: 0May 5 Linux: 2 Mac: 0 Windows: 0May 4 Linux: 5 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 1 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 2May 1 Linux: 1 Mac: 1 Windows: 0Apr 30 Linux: 1 Mac: 1 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 1Apr 28 Linux: 0 Mac: 1 Windows: 1Apr 27 Linux: 1 Mac: 2 Windows: 1Apr 26 Linux: 1 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 1Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 2 Mac: 1 Windows: 0Apr 22 Linux: 1 Mac: 1 Windows: 0Apr 21 Linux: 0 Mac: 3 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 1Apr 19 Linux: 0 Mac: 2 Windows: 0Apr 18 Linux: 0 Mac: 1 Windows: 2Apr 17 Linux: 1 Mac: 1 Windows: 0

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.