mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(docs): add details about org-roam-protocol with Homebrew (#2441)
Add additional information for setting up org-roam-protocol on Mac OS when using emacs installed from Homebrew (see also https://org-roam.discourse.group/t/problem-with-org-roam-protocol/3473)
This commit is contained in:
committed by
GitHub
parent
2d1c5d78e8
commit
e93c77f6a5
@ -1106,6 +1106,21 @@ defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandle
|
|||||||
|
|
||||||
Then restart your computer.
|
Then restart your computer.
|
||||||
|
|
||||||
|
If you're using the [[https://formulae.brew.sh/formula/emacs][Emacs Homebrew formula]], you may need one of the following additional configurations:
|
||||||
|
|
||||||
|
a) Add option `-c` to `emacsclient` in the script, and start emacs from command line with `emacs --daemon`
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
on open location this_URL
|
||||||
|
set EC to "/usr/local/bin/emacsclient -c --no-wait "
|
||||||
|
set filePath to quoted form of this_URL
|
||||||
|
do shell script EC & filePath & " &> /dev/null &"
|
||||||
|
tell application "Emacs" to activate
|
||||||
|
end open location
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
b) Add `(server-start)` in .emacs (in this case you do not need option `-c` for `emacsclient` in the script, and you do not need to start emacs with `emacs --daemon`
|
||||||
|
|
||||||
***** Testing org-protocol
|
***** Testing org-protocol
|
||||||
|
|
||||||
To test that you have the handler setup and registered properly from the command
|
To test that you have the handler setup and registered properly from the command
|
||||||
|
Reference in New Issue
Block a user