@@ -126,10 +126,11 @@ functionality easily.
126
126
127
127
Keymaps can be added to the ` elixir-mode-map ` variable.
128
128
129
- ## Notes
129
+ ### Pairing
130
130
131
- If you want to use ` ruby-end-mode ` for a more comfortable editing
132
- experience, you can add the following to your ` elixir-mode-hook ` :
131
+ [ Smartparens] ( https://github.com/Fuco1/smartparens ) has direct support for Elixir.
132
+
133
+ Alternatively, if you want to use ` ruby-end-mode ` , you can add the following to your ` elixir-mode-hook ` :
133
134
134
135
``` lisp
135
136
(add-to-list 'elixir-mode-hook
@@ -140,21 +141,6 @@ experience, you can add the following to your `elixir-mode-hook`:
140
141
(ruby-end-mode +1)))
141
142
```
142
143
143
- Also, if you use [ smartparens] ( https://github.com/Fuco1/smartparens ) you can
144
- piggyback on some of its functionality for dealing with Ruby's ` do .. end `
145
- blocks. A sample configuration would be:
146
-
147
- ``` lisp
148
- (sp-with-modes '(elixir-mode)
149
- (sp-local-pair "fn" "end"
150
- :when '(("SPC" "RET"))
151
- :actions '(insert navigate))
152
- (sp-local-pair "do" "end"
153
- :when '(("SPC" "RET"))
154
- :post-handlers '(sp-ruby-def-post-handler)
155
- :actions '(insert navigate)))
156
- ```
157
-
158
144
## Elixir Tooling Integration
159
145
160
146
If you looking for elixir tooling integration for Emacs, check: [ alchemist.el] ( https://github.com/tonini/alchemist.el )
@@ -172,8 +158,8 @@ Please read [CONTRIBUTING.md](https://github.com/elixir-lang/emacs-elixir/blob/m
172
158
173
159
## License
174
160
175
- Copyright © 2011-2015 Samuel Tonini, Matt DeBoard, Andreas Fuchs, secondplanet and
176
- [ contributors] ( https://github.com/tonini/alchemist.el /contributors ) .
161
+ Copyright © 2011-2017 Samuel Tonini, Matt DeBoard, Andreas Fuchs, secondplanet and
162
+ [ contributors] ( https://github.com/elixir-lang/emacs-elixir /contributors ) .
177
163
178
164
Distributed under the GNU General Public License, version 3
179
165
0 commit comments