Skip to content

Need more instruction to trigger everywhere #1

Open

Description

@ztlevi

Hi,

Can u give more instructions on how to bind key on macos?

Meanwhile, I got this error when invoke emacsclient --eval "(emacs-everywhere)" inside terminal.

image

Here is my emacs:

➜ ll /usr/local/bin/emacs
Permissions Size User   Group Date Modified Name
lrwxr-xr-x    41 ztlevi admin 31 Jan 16:50  /usr/local/bin/emacs -> ../Cellar/emacs-plus@28/28.0.50/bin/emacs
SYSTEM  type       darwin
        config     x86_64-apple-darwin20.2.0
        shell      /usr/local/bin/zsh
        uname      Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
        path       (~/.config/emacs/bin/ ~/.local/share/fzf/bin /usr/local/opt/emacs-mac/bin ~/.config/emacs/bin ~/.local/share/cargo/bin ~/.local/share/nodenv/shims ~/.local/share/nodenv/bin ~/.local/share/nodenv/versions/14.15.4/bin /Library/Java/JavaVirtualMachines/openjdk-14.0.2.jdk/Contents/Home/bin ~/.local/share/android/bin ~/.local/share/go/bin /usr/local/sbin /usr/local/bin ~/.local/bin ~/Dotfiles/bin ~/.local/share/Dotfiles/base.macos.topic/bin ~/.local/share/Dotfiles/editor.emacs.topic/bin ~/.local/share/Dotfiles/misc.private.topic/bin ~/.local/share/Dotfiles/shell.git.topic/bin ~/.local/share/Dotfiles/shell.tmux.topic/bin /usr/bin /bin /usr/sbin /sbin /usr/local/anaconda3/bin ~/Library/Python/3.8/bin ~/.antigen/bundles/robbyrussell/oh-my-zsh/lib ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/github ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitignore ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitfast ~/.antigen/bundles/wfxr/forgit ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-machine ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/python ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pip ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/django ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/golang ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/node ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/npm ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/yarn ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/zsh_reload ~/.antigen/bundles/jeffreytse/zsh-vi-mode ~/.antigen/bundles/hlissner/zsh-autopair ~/.antigen/bundles/zsh-users/zsh-completions ~/.antigen/bundles/zsh-users/zsh-history-substring-search ~/.antigen/bundles/zdharma/fast-syntax-highlighting ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux-cssh ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmuxinator ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/aws ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fzf ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/jira ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ripgrep ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/web-search ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/nmap ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/copydir ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/copyfile ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/common-aliases ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man-pages ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/rsync ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/dotenv ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fd ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mosh ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract ~/.antigen/bundles/soimort/you-get ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/brew ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/osx /usr/local/Cellar/emacs-plus@28/28.0.50/libexec/emacs/28.0.50/x86_64-apple-darwin20.2.0/)
EMACS   dir        ~/.config/emacs/
        version    28.0.50
        build      Jan 27, 2021
        buildopts  --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@28/28.0.50/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained
        features   ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB
        traits     (gui server-running envvar-file)
DOOM    dir        ~/.config/doom/
        version    2.0.9
        font       #<font-spec nil nil CartographCF Nerd Font nil nil nil nil nil 13 nil nil nil nil>
        theme      doom-one-light
        build      HEAD -> develop d1e5bfc07 2021-01-31 18:57:23 -0500
        elc-files  0
        modules    (:completion (company +auto) (ivy +icons +prescient +childframe) :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) lispy multiple-cursors rotate-text snippets :emacs (dired +ranger +icons) electric ibuffer undo vc :term eshell :checkers (syntax +childframe) (spell +aspell) grammar :tools (debugger +lsp) direnv docker editorconfig (eval +overlay) (lookup +devdocs +docsets) lsp magit make prodigy rgb tmux upload :os macos (tty +osc) :lang (cc +lsp) data emacs-lisp (go +lsp) json (java +lsp) (javascript +lsp) latex (markdown +grip) nix (org +roam +dragndrop ipython +pandoc +pomodoro +present) (python +pyright +lsp) rust sh web yaml :config (default +bindings +snippets +smartparens) :private (&user my-python) (&user my-checker))
        packages   ((adoc-mode) (tldr) (edit-indirect) (blog-admin :recipe (:host github :repo codefalling/blog-admin)) (youdao-dictionary) (link-hint) (symbol-overlay) (keycast) (all-the-icons-ibuffer) (emacs-everywhere :recipe (:host github :repo tecosaur/emacs-everywhere)) (dired-narrow) (atomic-chrome) (git-link) (counsel-etags) (imenu-list) (tmux-pane) (lsp-docker) (rime :recipe (:host github :repo DogLooksGood/emacs-rime :files (*.el Makefile lib.c))) (highlight-indent-guides) (bazel-mode :recipe (:host github :repo bazelbuild/emacs-bazel-mode)) (import-js))
        unpin      (n/a)
        elpa       (n/a)

Activity

  1. tecosaur commented on Feb 7, 2021

    @tecosaur
    Owner

    How recent is your version? Someone mentioned that issue to me, but I pushed a change that should have fixed it.

  2. tecosaur commented on Feb 7, 2021

    @tecosaur
    Owner

    With the mac keybinding, I'm afraid I don't really know how that would be done.

  3. elken commented on Feb 7, 2021

    @elken
    Contributor

    With the mac keybinding, I'm afraid I don't really know how that would be done.

    Something like karabiner

  4. elken commented on Feb 7, 2021

    @elken
    Contributor

    Hi,

    Can u give more instructions on how to bind key on macos?

    Meanwhile, I got this error when invoke emacsclient --eval "(emacs-everywhere)" inside terminal.

    image

    Here is my emacs:

    ➜ ll /usr/local/bin/emacs
    Permissions Size User   Group Date Modified Name
    lrwxr-xr-x    41 ztlevi admin 31 Jan 16:50  /usr/local/bin/emacs -> ../Cellar/emacs-plus@28/28.0.50/bin/emacs
    
    SYSTEM  type       darwin
            config     x86_64-apple-darwin20.2.0
            shell      /usr/local/bin/zsh
            uname      Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
            path       (~/.config/emacs/bin/ ~/.local/share/fzf/bin /usr/local/opt/emacs-mac/bin ~/.config/emacs/bin ~/.local/share/cargo/bin ~/.local/share/nodenv/shims ~/.local/share/nodenv/bin ~/.local/share/nodenv/versions/14.15.4/bin /Library/Java/JavaVirtualMachines/openjdk-14.0.2.jdk/Contents/Home/bin ~/.local/share/android/bin ~/.local/share/go/bin /usr/local/sbin /usr/local/bin ~/.local/bin ~/Dotfiles/bin ~/.local/share/Dotfiles/base.macos.topic/bin ~/.local/share/Dotfiles/editor.emacs.topic/bin ~/.local/share/Dotfiles/misc.private.topic/bin ~/.local/share/Dotfiles/shell.git.topic/bin ~/.local/share/Dotfiles/shell.tmux.topic/bin /usr/bin /bin /usr/sbin /sbin /usr/local/anaconda3/bin ~/Library/Python/3.8/bin ~/.antigen/bundles/robbyrussell/oh-my-zsh/lib ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/github ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitignore ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitfast ~/.antigen/bundles/wfxr/forgit ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-machine ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/python ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pip ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/django ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/golang ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/node ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/npm ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/yarn ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/zsh_reload ~/.antigen/bundles/jeffreytse/zsh-vi-mode ~/.antigen/bundles/hlissner/zsh-autopair ~/.antigen/bundles/zsh-users/zsh-completions ~/.antigen/bundles/zsh-users/zsh-history-substring-search ~/.antigen/bundles/zdharma/fast-syntax-highlighting ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux-cssh ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmuxinator ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/aws ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fzf ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/jira ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ripgrep ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/web-search ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/nmap ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/copydir ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/copyfile ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/common-aliases ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man-pages ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/rsync ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/dotenv ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fd ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mosh ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract ~/.antigen/bundles/soimort/you-get ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/brew ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/osx /usr/local/Cellar/emacs-plus@28/28.0.50/libexec/emacs/28.0.50/x86_64-apple-darwin20.2.0/)
    EMACS   dir        ~/.config/emacs/
            version    28.0.50
            build      Jan 27, 2021
            buildopts  --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@28/28.0.50/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained
            features   ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB
            traits     (gui server-running envvar-file)
    DOOM    dir        ~/.config/doom/
            version    2.0.9
            font       #<font-spec nil nil CartographCF Nerd Font nil nil nil nil nil 13 nil nil nil nil>
            theme      doom-one-light
            build      HEAD -> develop d1e5bfc07 2021-01-31 18:57:23 -0500
            elc-files  0
            modules    (:completion (company +auto) (ivy +icons +prescient +childframe) :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) lispy multiple-cursors rotate-text snippets :emacs (dired +ranger +icons) electric ibuffer undo vc :term eshell :checkers (syntax +childframe) (spell +aspell) grammar :tools (debugger +lsp) direnv docker editorconfig (eval +overlay) (lookup +devdocs +docsets) lsp magit make prodigy rgb tmux upload :os macos (tty +osc) :lang (cc +lsp) data emacs-lisp (go +lsp) json (java +lsp) (javascript +lsp) latex (markdown +grip) nix (org +roam +dragndrop ipython +pandoc +pomodoro +present) (python +pyright +lsp) rust sh web yaml :config (default +bindings +snippets +smartparens) :private (&user my-python) (&user my-checker))
            packages   ((adoc-mode) (tldr) (edit-indirect) (blog-admin :recipe (:host github :repo codefalling/blog-admin)) (youdao-dictionary) (link-hint) (symbol-overlay) (keycast) (all-the-icons-ibuffer) (emacs-everywhere :recipe (:host github :repo tecosaur/emacs-everywhere)) (dired-narrow) (atomic-chrome) (git-link) (counsel-etags) (imenu-list) (tmux-pane) (lsp-docker) (rime :recipe (:host github :repo DogLooksGood/emacs-rime :files (*.el Makefile lib.c))) (highlight-indent-guides) (bazel-mode :recipe (:host github :repo bazelbuild/emacs-bazel-mode)) (import-js))
            unpin      (n/a)
            elpa       (n/a)
    

    I can confirm the same issue, I'll see if I can fix for you

  5. elken commented on Feb 7, 2021

    @elken
    Contributor

    @ztlevi Try deleting your ~/.emacs.d/.local/straight/build-28.0.50/emacs-everywhere folder and doing a doom sync

  6. ztlevi commented on Feb 7, 2021

    @ztlevi
    Author

    I'm on latest commit and I still have this issue @tecosaur

    emacs-everywhere on  master
    ➜ g glog
    * a484800 - (grafted, HEAD -> master, origin/master, origin/HEAD) Add demo, note soon to be doom module (
    
    emacs-everywhere on  master took 7s
    ➜ pwd
    /Users/ztlevi/.config/emacs/.local/straight/repos/emacs-everywhere
    

    @elken How to bind a terminal command with karabiner?

  7. elken commented on Feb 7, 2021

    @elken
    Contributor

    It worked after updating my build folder, see previous comment.

    @elken How to bind a terminal command with karabiner?

    https://karabiner-elements.pqrs.org/docs/

  8. ztlevi commented on Feb 7, 2021

    @ztlevi
    Author

    @elken
    I still have that osascript issue.

    Something like this in karabiner?
    image

  9. elken commented on Feb 7, 2021

    @elken
    Contributor

    @ztlevi what's in that folder now then?

  10. tecosaur commented on Feb 7, 2021

    @tecosaur
    Owner

    FYI: I don't actually have access to a Mac, so I'm going off guesswork 😛. The best hope is other Mac users like elken who can try to work out what's going on and test things themselves.

  11. elken commented on Feb 7, 2021

    @elken
    Contributor

    FYI: I don't actually have access to a Mac, so I'm going off guesswork stuck_out_tongue. The best hope is other Mac users like elken who can try to work out what's going on and test things themselves.

    Aren't you always going off guesswork? 🤔

  12. elken commented on Feb 7, 2021

    @elken
    Contributor

    @ztlevi @tecosaur has a potential fix for you that should resolve this

  13. ztlevi commented on Feb 7, 2021

    @ztlevi
    Author

    @tecosaur The title shows properly now. But it doesn't put the text in other apps. Let me know if you would like to do a live debugging session. You can reach me via Discord ztlevi#2108.

  14. elken commented on Feb 8, 2021

    @elken
    Contributor
  15. ztlevi commented on Feb 8, 2021

    @ztlevi
    Author

    @elken I recorded this https://vimeo.com/509692865.

    And I toggle-debug-on-error but nothing poped up.

    Versions:

    emacs-everywhere on  master
    ✖ pwd
    /Users/ztlevi/.config/emacs/.local/straight/repos/emacs-everywhere
    
    emacs-everywhere on  master
    ➜ g glog
    * d84b397 - (grafted, HEAD -> master) Fix: Pasting on OSX (15 hours ago) <Ellis Kenyo>
    
  16. 18 remaining items

  17. added a commit that references this issue on Feb 9, 2022
    17d7b7d
  18. xqliu commented on Mar 7, 2022

    @xqliu

    The alfred screenshot is great,

    I can configure it correctly baed on it.

    Thanks

  19. tecosaur commented on Mar 29, 2022

    @tecosaur
    Owner

    I'm wondering if it could be worth having a wiki for the different ways to get this side of things set up nicely.

  20. elken commented on Mar 29, 2022

    @elken
    Contributor

    I'm wondering if it could be worth having a wiki for the different ways to get this side of things set up nicely.

    Or just amend the README/add a setup.org

  21. tecosaur commented on Mar 29, 2022

    @tecosaur
    Owner

    The reason why I'm considering a wiki is because then anyone can just edit it.

  22. tecosaur commented on Apr 6, 2023

    @tecosaur
    Owner

    A wiki now exists, and is publicly editable: https://github.com/tecosaur/emacs-everywhere/wiki

  23. XelorR commented on Jun 16, 2023

    @XelorR

    Hello everyone.

    I am trying to configure Emacs-Everywhere on my M1 mac. Emacs 28 (Homebrew default), MacOS Ventura.

    I want to use Automator to setup quick action and keyboard settings to assign it.

    My steps:
    Screenshot 2023-06-16 at 20 50 22
    Screenshot 2023-06-16 at 20 49 25
    Screenshot 2023-06-16 at 20 49 40
    Screenshot 2023-06-16 at 20 51 14

    It works perfectly in my web browser but not in other apps. My keyboard shortcut doesn't work in Telegram and Microsoft Office apps for example.

    What i did wrong? Do i need to assign any additional rights to Emacs or change the shortcut by some reason?

  24. gary-ruizhang commented on Jul 21, 2023

    @gary-ruizhang

    @elken I still have that osascript issue.

    Something like this in karabiner? image

    use absolute path for the emacsclient
    CleanShot 2023-07-21 at 16 16 34@2x

  25. aster-hu commented on Jan 28, 2024

    @aster-hu

    I use Hammerspoon to set keybinding Cmd-Ctrl-e and below config works perfectly for me. I'm on Mac M2, Ventura 13 and Emacs 29.1 (railwaycat).

    For me, using emacsclient --eval "(emacs-everywhere) alone did not work (it only works in Terminal) and I felt the most important thing is to set the right path for emacsclient binary, which is in Applications folder in my case. Also make sure you add Emacs and Hammerspoon in System Preference - Privacy & Security - Accessibility.

    Init.lua

    cms = {"cmd", "ctrl"}
    
    hs.hotkey.bindSpec({cms, "e"},
      function()
        hs.execute("/Applications/Emacs.app/Contents/MacOS/bin/emacsclient --eval '(emacs-everywhere)'")
    end)
    
  26. dschaehi commented on Sep 25, 2024

    @dschaehi

    I was successful using Karabiner:

    {
        "description": "Emacs Everywhere with right_control + right_shift + e",
        "manipulators": [
            {
                "from": {
                    "key_code": "e",
                    "modifiers": { "mandatory": ["right_control", "right_shift"] }
                },
                "to": [{ "shell_command": "/opt/homebrew/bin/emacsclient --eval '(emacs-everywhere)'" }],
                "type": "basic"
            }
        ]
    }

    Before this key binding works, you would need to allow accessibility for Emacs. In my case, I had to remove Emacs from the list of applications in "System Settings -> Privacy & Security -> Accessibility" and then add it again.

  27. nitincodery commented on Sep 21, 2025

    @nitincodery

    After using this PR #108, it worked on my mac (M1, 2020), I used following karabiner goku config to trigger it:

    {:main
     [{:des "Cmd+` to Emacs Everywhere with Cmd+a first"
       :rules [[{:key :grave_accent_and_tilde :modi [:command]}
                [:!Ca "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -e \"(emacs-everywhere)\" >/dev/null 2>&1"]]]}]}

    Need to add Cmd+a (select all shortcut) before running emacs-everywhere to get all text input contents.

  28. tecosaur commented on Sep 23, 2025

    @tecosaur
    Owner

    Thanks for sharing. I really should collect these configuration snippets in the readme at some point 😅

  29. DamienCassou commented on Oct 1, 2025

    @DamienCassou

    Thanks for sharing. I really should collect these configuration snippets in the readme at some point 😅

    what about using the wiki so everyone can help?

  30. Bounga commented on Nov 1, 2026

    @Bounga

    I got this working with Apple's built-in Shortcuts app on macOS, using Doom Emacs but it should work on vanilla Emacs with just one-line change.

    Create a shortcut with a Run Shell Script action (Bash, no input variable, administrator privileges off):

    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    export EMACS_SOCKET_NAME="$(/usr/bin/getconf DARWIN_USER_TEMP_DIR)emacs$(/usr/bin/id -u)/server"
    
    /Users/nico/.config/emacs/bin/doom +everywhere
    Image

    Adapt the path / command (/opt/homebrew/bin/emacsclient --eval '(emacs-everywhere)' for example) . The socket expression assumes the default socket directory and server name. Setting it explicitly fixed a lookup failure I encountered when launching from Shortcuts.

    I wrote up the setup with screenshots and troubleshooting, including an obsolete AppleScript format error. Related PR.

    Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    !?!?MacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions