Linux 下在打开方式中增加用 emacsclient

参考 open-with-emacs-in-nautilus

  1. 新建 ~/.local/share/applications/emacsclient.desktop

  2. 写入如下内容

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    [Desktop Entry]
    Name=Emacs Client
    GenericName=Text Editor
    Comment=Edit text
    MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
    Exec=emacsclient -n -a '' %F
    Icon=emacs
    Type=Application
    Terminal=false
    Categories=Development;TextEditor;
    StartupWMClass=Emacs
    Keywords=Text;Editor;