项目作者: justinekizhak

项目描述 :
Launchers for Emacs, Emacs daemon and Emacs client
高级语言: Shell
项目地址: git://github.com/justinekizhak/emacs-launchers.git
创建时间: 2019-10-11T10:48:03Z
项目社区:https://github.com/justinekizhak/emacs-launchers

开源协议:MIT License

下载


Built with Spacemacs
Instagram
Twitter
Facebook


License MacOS only


Emacs launchers


Table of contents

Introduction

MacOS only

Launchers for Emacs in standard mode, Emacs in daemon mode and Emacs as client.

Back to top

Features

  • No app path required.
    You don’t have to add path to your emacs application into this app.

  • Version agnostic
    If you have installed using brew or some other methods then you know if you
    upgrade the emacs version will change the application path.
    This app doesn’t care about that.

  • Works with other Emacs applications like Emacs-plus etc.
    As long as they can be accessed from the terminal using the standard bash
    commands.

  • Spacemacs icon

Back to top

Getting Started

Download and copy all three .app files into your Application directory.

You can launch using double-clicking or using spotlight.

Back to top

Full Documentation

Apps included:

  • Emacs.app: Launch the full emacs version.

    This app executes a bash script called script with contents

    1. #!/usr/bin/env bash
    2. /usr/local/bin/emacs
  • Emacsserver.app: Launch only the server. This will create a small textbox
    and print some initializing messages of emacs and the textbox closes. But there
    will be a emacs --daemon process running in background.

    This app executes a bash script called script with contents

    1. #!/usr/bin/env bash
    2. /usr/local/bin/emacs --daemon
  • Emacsclient.app: To launch the Emacs “window” or the frame. Use this app.
    But when closing make sure you close only the frame not including the daemon
    instance.

    This app executes a bash script called script with contents

    1. #!/usr/bin/env bash
    2. /usr/local/bin/emacsclient -a '' -c

The Emacsclient.app can only launch only one frame if no frame is available.
This is because of how MacOS works. MacOS only allows one instance of app to
launch.
But to create more frames then use the command make-frame within emacs.
In Spacemacs its SPC F n.

To launch more instance of the emacsclient application itself then you can use
the terminal and run open Emacsclient.app.

FAQ’s

  1. I use emacs-plus but I launch emacs-plus/something-else using separate
    alias in my terminal. What are my options?

    If you want to use Emacs-plus, then you must make sure its can be launched by running emacs on terminal,

    else you have 2 options

    • Create an alias to emacs-plus and assign to emacs in your bash profile

    • You will have to modify the contents of the respective script file to
      match what you use to launch the app from your terminal.

  2. Do I need to use Emacsserver.app everytime I start my computer?

    Not really. Unless you want to close and start the daemon instance you don’t need this app.

    But you will have to make arrangements to launch emacs deamon some other way.

    I prefer using the system launcher to do that everytime I start my Mac.

    You can run this in your shell to do that.

    1. ln -sfv /usr/local/opt/emacs*/*.plist ~/Library/LaunchAgents
    2. launchctl load ~/Library/LaunchAgents/homebrew.mxcl.emacs*.plist

Visit website.

Read CHANGELOG, CODE OF CONDUCT, CONTRIBUTING guide.

License

Licensed under the terms of MIT LICENSE.

Back to top


forthebadge
forthebadge
forthebadge