Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to configure emacs-anywhere with Karabiner-elements instead of setting a hotkey via the GUI SystemPreferences/keyboard/shortcuts/services/general? #79

Open
pdelfino opened this issue Aug 17, 2022 · 0 comments

Comments

@pdelfino
Copy link

pdelfino commented Aug 17, 2022

Hi,

I really like this emacs-anywhere software!

Currently, I am following the instructions on the README file. Hence, I have defined a hotkey via macOS' GUI on SystemPreferences/keyboard/shortcut/services/general.

However, I am managing all my hotkeys with Karabiner-elements. I like the text-driven approach via JSON file. This is my config file. It is way more reproducible.

If I re-store this machine (or buy a new one) or share my config with a friend, it is just necessary to paste the text content.

Thus, I would like to ask, is it possible to configure this with a shell command?

For instance, this is how I can open Brave browser:

{
    "description": "left_command + b -> Brave",
    "manipulators": [
        {
            "from": {
                "key_code": "b",
                "modifiers": {
                    "mandatory": [
                        "left_command"
                    ]
                }
            },
            "to": [
                {
                    "shell_command": "open '/Applications/Brave Browser.app'"
                }
            ],
            "type": "basic"
        }
    ]
}

What would be the terminal shell command to invoke Emacs-anywhere on macOS?
What command is trigger when I execute the shortcut defined on Apple's GUI System Preferences?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant