What I would like to achieve
What I have currently
Issues I encountered while trying to achieve what I wanted
File error: Cannot bind server socket, address already in use
Things I tried
emacs wiki
stackoverflow
emacs fu
Update: I tried again with the stackoverflow link, and now most of it is working. However, something I would like to be able to do is to reload the init file, so that I can make changes to my init file without restarting the computer. Any ideas?
Also, if the server is running and I have emacs false-closed (see emacs fu link), how can i start it again without loading a file? eg what would the equivalent of running emacs23 be, as this doesn't work (see error written above)
Making Emacs your default terminal editor If these files don't yet exist, opening an unknown file name with the emacs command will create a new file for you when you save. (The -nw Emacs flag opens the editor in non-GUI mode.) Save the file, exit the editor, and then restart your terminal.
The Vi application is the default text editor on most Linux systems, so it's the primary interface you will use when you need to edit a configuration file. If you're used to a graphical text editor, such as Notepad++ or VS Code, Vi can be confusing at first.
(start-server)
from .emacs
emacsclient "$@" -a ""
to start emacs whether it is running or notIf you save emacsclient "$@" -a ""
as a script e.g. in editor
file then editor -c
creates a new frame, editor -t
opens new frame in the terminal, and editor FILE
visits FILE
in an existing frame. It starts emacs server if it is not running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With