This is small proposal to improve erlang navigation when coding. It is a two piece adjustment:
In the Makefile
tags:
find src include deps -name "*.[he]rl" -print | xargs etags -o TAGS
And in emacs, you can do this:
(defun le2m/erlang-update-tags ()
(interactive)
(let ((root (locate-dominating-file default-directory "Makefile")))
(when root
(let ((default-directory root))
(shell-command "gmake tags")
(message "Tags updated")))))
(advice-add 'erlang-compile :before #'le2m/erlang-update-tags)
When typing C-c C-k, the TAGS file will be “automagically” created

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Erlang small QoL