[<<][emacs][>>][..]
Thu Jun 29 11:47:16 EDT 2017

fun() indentation level in emacs mode

https://www.reddit.com/r/emacs/comments/4fa3m5/how_can_i_use_4space_indent_in_erlang_mode/
https://stackoverflow.com/questions/5120385/emacs-erlang-mode-indenting-twice-what-erlang-indent-level-specifies

If I understand correctly, it's because
  fun() ->

is both a function definition and a keyword?


(defun erlang-at-keyword ()
  "Are we looking at an Erlang keyword which will increase indentation?"
  (looking-at (concat "\\(when\\|if\\|fun\\|case\\|begin\\|"
                      "of\\|receive\\|after\\|catch\\|try\\)\\b")))

EDIT: Couldn't make much sense of it.





[Reply][About]
[<<][emacs][>>][..]