File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,18 @@ There are no keyboard shortcuts included by default.
119
119
120
120
This is still very alpha software; there are probably several
121
121
bugs. Right now the indentation implementation needs some work, and
122
- the operator and atom font-locking doesn't appear to be working
123
- correctly.
122
+ the IEX mode appears entirely untested.
124
123
125
124
## Notes
126
125
127
- This is my first Emacs mode, so please excuse some of the messy bits
128
- in the implementation. To help me out I had a look at and borrowed a
129
- bit of code from io-mode, ruby-mode, and coffee-mode.
126
+ If you want to use ` ruby-end-mode ` for a more comfortable editing
127
+ experience, you can add the following to your ` elixir-mode-hook ` :
128
+
129
+ ``` lisp
130
+ (add-to-list 'elixir-mode-hook
131
+ (defun auto-activate-ruby-end-mode-for-elixir-mode ()
132
+ (set (make-variable-buffer-local 'ruby-end-expand-keywords-before-re)
133
+ "\\(?:^\\|\\s-+\\)\\(?:do\\)")
134
+ (set (make-variable-buffer-local 'ruby-end-check-statement-modifiers) nil)
135
+ (ruby-end-mode +1)))
136
+ ```
You can’t perform that action at this time.
0 commit comments