<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I followed the guide with link (From <span class="">Adopting Erlang</span><span class="">): </span><a href="https://adoptingerlang.org/docs/development/setup/" class="">https://adoptingerlang.org/docs/development/setup/</a></div><div class="">Seems "<span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">ivy-erlang-complete" is not properly configured.</span></div><div class=""><br class=""></div><div class="">Here is some environment information:</div><div class="">Erlang version: Erlang/OTP 22.1.4</div><div class="">Emacs version: <span class="">GNU Emacs 25.3.1</span></div><div class=""><br class=""></div><div class="">And here is my related ~/.emacs configuration for Erlang:</div><div class="">====</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(215, 57, 30); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">;; for ivy-erlang-complete </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(52, 161, 161); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #d03bff" class="">use-package</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">ivy-erlang-complete</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(125, 124, 166); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">:ensure</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> t)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(215, 57, 30); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">;; for delight </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(208, 59, 255); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures" class="">use-package</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34a1a1" class="">delight</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(125, 124, 166); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">:ensure</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> t)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(215, 57, 30); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">;; for flycheck </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(208, 59, 255); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures" class="">use-package</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34a1a1" class="">flycheck</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(125, 124, 166); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">:ensure</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> t</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(125, 124, 166); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">:delight</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #7d7ca6" class="">:config</span><span style="font-variant-ligatures: no-common-ligatures" class=""> (global-flycheck-mode))</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(215, 57, 30); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">;; for erlang </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(208, 59, 255); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures" class="">use-package</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34a1a1" class="">erlang</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(175, 55, 130); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #7d7ca6" class="">:load-path</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures" class="">¡°/<PATH>/lib/erlang/lib/tools-3.2.1/emacs"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #7d7ca6" class="">:hook</span><span style="font-variant-ligatures: no-common-ligatures" class=""> (after-save . ivy-erlang-complete-reparse)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(175, 55, 130); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #7d7ca6" class="">:custom</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> (ivy-erlang-complete-erlang-root </span><span style="font-variant-ligatures: no-common-ligatures" class="">"/<PATH>/lib/erlang"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #7d7ca6" class="">:config</span><span style="font-variant-ligatures: no-common-ligatures" class=""> (ivy-erlang-complete-init)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #7d7ca6" class="">:mode</span><span style="font-variant-ligatures: no-common-ligatures" class=""> ((</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"\\.erl?$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"rebar\\.config$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"relx\\.config$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"sys\\.config\\.src$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"sys\\.config$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"\\.config\\.src?$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(175, 55, 130); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures" class="">"\\.config\\.script?$"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"\\.hrl?$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"\\.app?$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"\\.app.src?$"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> (</span><span style="font-variant-ligatures: no-common-ligatures; color: #af3782" class="">"\\Emakefile"</span><span style="font-variant-ligatures: no-common-ligatures" class=""> . erlang-mode)))</span></div></div><div class="">====</div><div class=""><br class=""></div><div class="">When I restart my emacs with above configuration, I got error message as below:</div><div class="">====</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error (use-package): erlang/:config: Symbol¡¯s function definition is void: ivy-erlang-complete-setup-flycheck</span></div></div><div class="">====</div><div class="">I have no clue about what happened.</div><div class=""><br class=""></div><div class="">An example ~/.emacs file related to Erlang would be very helpful.</div><div class=""><br class=""></div><div class="">I searched it with Google, but seems no typical configuration demo/example exist for configuring Emacs with Erlang.</div><div class=""><br class=""></div><div class="">By the way, I want to ask: what kind of editor configuration do you use to develop Erlang every day?</div><div class=""><br class=""></div><div class="">Yao</div></body></html>