Require noflet in scala contrib
`noflet` may not be loaded when scala-mode2 is being configured, meaning an advised function was failing when evaluated. Resolves #383
This commit is contained in:
parent
f9905106c4
commit
fbf200cfea
|
@ -70,6 +70,8 @@ which require an initialization must be listed explicitly in the list.")
|
|||
'(scala-indent:align-parameters t)
|
||||
'(scala-indent:default-run-on-strategy scala-indent:operator-strategy))
|
||||
|
||||
(require 'noflet)
|
||||
|
||||
(defadvice scala-indent:indent-code-line (around retain-trailing-ws activate)
|
||||
"Keep trailing-whitespace when indenting."
|
||||
(noflet ((scala-lib:delete-trailing-whitespace ()))
|
||||
|
|
Loading…
Reference in New Issue