![]() It should be simple enough to implement, but the Emacs client ( /Applications/Emacs.app/Contents/MacOS/bin/emacsclient) seems to have problems locating the server from time to time. Instead, I decided to use the Emacs client to start the server, if it cannot detect a running Emacs. However, I never found this to be useful. To start the Emacs server, it is possible to ask macOS to launch the Emacs daemon automatically when the user logs in (see here). Next up we need to instruct linux to send emacs to your running server. Once you hit go, it will start up the server. At the end it will give you an option to save the config so you can save your settings and, more importantly, get it to run without interrupting you at startup. This was when I realized that I should investigate the client/server mode. Once installed, load it up and run through the config. What I wanted was for the running Emacs to open a new buffer. The problem with the emacs shell command, though, was that if I use it to open a second document, a new instance of Emacs would be launched. However, I eventually decided to switch to the GUI mode because I liked how org-mode documents are rendered in GUI mode. I used to use emacsnw exclusively, because I thought that managing an addition macOS window was a hassle. ![]() Yes, atm when I kill Emacs I need to close everything and run wsl-20-run-all.bat. Function emacs () alias emacsnw = "/Applications/Emacs.app/Contents/MacOS/Emacs -nw" If I want to restart Emacs: M-x kill-emacs or C-x C-c.
0 Comments
Leave a Reply. |