transclusion-minor-mode icon indicating copy to clipboard operation
transclusion-minor-mode copied to clipboard

Support on MacOS

Open ryanwwest opened this issue 5 years ago • 3 comments

Is there an easy way to support this on MacOS? Trying to run npm install results in errors.

ryanwwest avatar Jan 16 '20 19:01 ryanwwest

This looks great! Could you give more precise installations instructions? Do you need the nix stuff only for development or also just for using it? I tried just using it in Emacs with load-file, but it seems some dependencies were missing. Could you help out a newb? Asking for a friend ;)

wuqui avatar Jun 07 '20 14:06 wuqui

sorry for the late reply. I just pushed a quick update to the README. This update also removes the xcl subdirectory, which contains the actual transclusion logic (a nodejs server). This repo now only deals with the emacs interaction client

The nix stuff is entirely optional, but it's easier for me to control the environment that way. I just tested the setup on a mostly bare ubuntu machine this way (assuming nix is installed)

server setup

terminal 1

git clone https://github.com/whacke/xcl
cd xcl
# generally, at this point, I run `nix-shell`, which is optional if you have all the binaries at hand. In this case, node >= 10
npm install
shadow-cljs watch node-webserver
# compiles and watches

terminal 2

cd xcl
node build/webserver.js  # launches the transclusion engine

emacs

git clone https://github.com/whacked/transclusion-minor-mode
cd transclusion-minor-mode
git submodule init
git submodule update
emacs -q  # bare setup

now, ensure you have the bare minimum packages. If you run Emacs 26.3+, ov from melpa should be all you need. From the bare setup should be able to activate melpa using the quickstart on melpa https://melpa.org/#/getting-started; but you most likely have melpa already, so package-install ov should be fine.

then in emacs, load-file should work. I tested the requires line by line from my emacs -q process and ov was the only one I needed.

Let me know if you need any clarification

whacked avatar Sep 14 '20 01:09 whacked

Thanks for the update, I'm gonna give this another shot soon!

wuqui avatar Sep 14 '20 07:09 wuqui