Skip to content

Commit 74eebad

Browse files
committed
Update README a bit
Update the Bugs section, add a note about ruby-end-mode
1 parent 3a4447e commit 74eebad

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.markdown

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,18 @@ There are no keyboard shortcuts included by default.
119119

120120
This is still very alpha software; there are probably several
121121
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.
124123

125124
## Notes
126125

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+
```

0 commit comments

Comments
 (0)