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

  • 2018.03.01.12.10.32
  • github.​com
  • github.​com
  • 4 months ago
  • 4 minutes ago
  • 6 years ago

Installs

  • Total 35K
  • Win 6K
  • OS X 21K
  • Linux 8K
Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 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
Windows 1 2 1 2 2 6 4 5 3 4 5 4 1 4 2 8 3 5 4 2 2 6 7 8 2 2 5 7 5 6 2 4 4 7 4 6 4 7 2 5 4 2 2 5 5 4
OS X 8 14 10 7 10 4 10 10 6 13 11 10 10 11 4 12 21 17 8 11 10 7 9 15 11 7 5 13 8 17 13 17 4 6 15 11 17 14 23 12 15 19 18 23 18 16
Linux 2 7 7 8 1 7 9 9 6 7 7 2 6 11 5 6 12 11 5 4 3 4 5 4 7 9 5 8 10 7 4 6 7 6 6 9 8 15 5 7 4 5 9 8 3 11

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!

Installation

Type the following commands to setup the bundle for TextMate:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd !$
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

If you are using TextMate 2, type the following commands in your shell:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir.tmbundle

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

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.

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.