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

Elixir

by elixir-editors ST2/ST3

A TextMate and Sublime Text Bundle for the Elixir programming language

Details

Installs

  • Total 38K
  • Win 7K
  • OS X 22K
  • Linux 9K
Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30
Windows 2 3 4 2 3 3 7 6 2 2 1 1 5 0 2 4 3 2 4 4 4 4 1 4 1 3 4 1 4 4 3 2 3 3 3 6 3 6 8 3 5 1 6 4 1 1
OS X 10 7 13 6 11 8 12 13 17 8 3 7 8 5 6 22 6 6 2 10 13 9 9 13 12 6 7 13 10 13 12 5 11 8 14 15 14 9 5 6 11 13 15 12 16 8
Linux 6 7 7 5 2 5 4 4 8 6 6 4 7 8 7 6 9 8 7 6 2 8 5 5 1 4 5 3 8 3 9 8 2 4 6 9 4 10 3 10 7 9 6 5 11 4

Readme

Source
raw.​githubusercontent.​com

Elixir.tmbundle

Travis build

A TextMate / Sublime Text Bundle for the Elixir programming language.

It provides syntax highlighting, snippets, and keybindings. Contributions and extensions are welcome!

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.