-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Description
I have a function named for
in a module and calling it in case
or if
from another module is messing up the indentation of the whole body.
Input / Expected indentation:
defmodule Whois do
def lookup1(domain) do
case Server.for(domain) do
{:ok, server} -> server
:error -> {:error, :unsupported}
end
end
def lookup2(domain) do
if Server.for(domain) do
:ok
else
:error
end
end
end
Actual, after selecting all text and calling indent-region
:
defmodule Whois do
def lookup1(domain) do
case Server.for(domain) do
{:ok, server} -> server
:error -> {:error, :unsupported}
end
end
def lookup2(domain) do
if Server.for(domain) do
:ok
else
:error
end
end
end
GNU Emacs 24.5.7 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21) of 2015-09-28 on Atago.local
Elixir-Mode version: 2.2.9 (package: 20160406.723)
Metadata
Metadata
Assignees
Labels
No labels