简体   繁体   中英

emacs, erlang and file association

I associated the .erl extension to runemacs.exe When I double-click on a erl file, emacs doesn't open it. If I open a erl file from the file menu of emacs, emacs opens the file !

  • a buffer is called as the erl file, the buffer is empty;
  • a buffer is called Program c:/, the buffer is empty

.emacs file is in C:/

What is my error, what is missing ?

First, I have a guess of what might be the problem. Do you have spaces in the file path? If so, runemacs.exe might treat the path as two different files and open them.

Secondly, I would recommend using "emacs server". By issuing Mx server-start RET in Emacs, and associate .erl with "emacsclient", you could open files in a running Emacs rather than starting a new one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM