How to set emacs to open new files in current instance on Ubuntu/Mint?

后端 未结 3 592
面向向阳花
面向向阳花 2021-01-31 20:27

I want to keep emacs open most of the time, and then whenever I open a text file, python file, etc (from nautilus/finder), I want it to open as a new buffer in my current emacs

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-31 20:59

    You want emacs client.

    Basically, set emacsclient as your default editor, and add (server-start) somewere in your emacs config.

    There needs to be a running Emacs instance for emacsclient to work, but if it's a hassle it's possible to have a headless Emacs launched at login.

提交回复
热议问题