neuron-mode on Windows - Neuron

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

@Capn Nemo Let's continue here.

Sridhar Ratnakumar

https://github.com/hubisan/emacs-wsl

Install and run emacs with the Windows Subsystem for Linux (WSL) in Windows 10. - hubisan/emacs-wsl
Capn Nemo

Is the creator of neuron-mode around?

Capn Nemo

Just trying to install on Win and looking for help.

Sridhar Ratnakumar

Feel free to follow the instructions, and post any roadblocks here for help

Capn Nemo

Instructions say "With Windows 10 Build 17093 and later certain functionality in WSL can be configured inside the file “/etc/wsl.conf" - but I don't see that file on my computer.

Sridhar Ratnakumar

Pro-tip: use Windows key + Shift + S to take a screenshot of a region and paste it in Zulip using Ctrl+V.

Capn Nemo

Is that file in the Ubuntu file directory, and how do I access that file?

Sridhar Ratnakumar

You can skip those configuration I think

Sridhar Ratnakumar

Its all in the Ubuntu file system, yea.

Sridhar Ratnakumar

For all intents and purpose, you are working with Ubuntu, not Windows.

Capn Nemo

It says, "Instead of using root user it’s better to add an user." - why?

Sridhar Ratnakumar

Go straight to "Install Emacs"

Capn Nemo

Is there a way to copy text from Win and paste it into the Ubuntu window? The dependencies install instruction is really long and Ctrl+V doesn't work.

Sridhar Ratnakumar

I think middle-click on the terminal will paste what's in the clipboard

Capn Nemo

Didn't work. Other ideas?

Capn Nemo

ok, worked, but I got a bunch of 'unable to locate package'

Sridhar Ratnakumar

try these first:

sudo apt update
sudo apt upgrade
Sridhar Ratnakumar

Sridhar Ratnakumar said:

Pro-tip: use Windows key + Shift + S to take a screenshot of a region and paste it in Zulip using Ctrl+V.

paste a screenshot

Sridhar Ratnakumar

What version of Ubuntu you installed? Show the output of cat /etc/*release

Sridhar Ratnakumar

https://github.com/hubisan/emacs-wsl/issues/3

TODOs from everything in here so far: Have to go through the installation (or check a video or the ms documentation) with WSL and WSL2 to see if it does setup a user for you and sets it as default ...
Sridhar Ratnakumar

doesn't look like this repo is up to date

Sridhar Ratnakumar

A reddit post made 3 months ago, "How to install Emacs on Windows 10 with WSL 2, as of Jan 2020, this starts from a blank slate." might be more useful : https://old.reddit.com/r/emacs/comments/er248t/installing_emacs_on_wsl2_with_windows_but_it_works/

Hi everyone, I've spent a good two hours setting up emacs with WSL2 on Windows and I suppose some people might benefit from it because no guide I...
Sridhar Ratnakumar

btw, do create an regular user account

Capn Nemo

Do I need WSL2 rather than WSL?

Capn Nemo

Do I need to logout and log back in with the regular user account?

Sridhar Ratnakumar

Not sure, I never did this before.

Sridhar Ratnakumar

No I mean a regular user account on Ubuntu (not windows)

Sridhar Ratnakumar

anyway, why not try command line emacs for now

Capn Nemo

Right, do I need to close Ubuntu and log back in with the regular Ubuntu user account?

Sridhar Ratnakumar

what happens if you do sudo apt install emacs?

Sridhar Ratnakumar

https://github.com/hubisan/emacs-wsl#add-user

Install and run emacs with the Windows Subsystem for Linux (WSL) in Windows 10. - hubisan/emacs-wsl
Sridhar Ratnakumar

... after emacs is installed.

Capn Nemo

OK, I added user but didn't change default because you told me to jump to installing Emacs. Impatient! :)

Capn Nemo

But i need to wait for the install to finish first

Capn Nemo

BTW, many thanks for helping me here!

Capn Nemo

Instructions say "Change the default user which is used when starting the WSL.

Open cmd.exe and run:

ubuntu config --default-user <username>"

Capn Nemo

But when I enter 'ubuntu' it doesn't recognize the command.

Sridhar Ratnakumar

always paste screenshots :slight_smile:

Sridhar Ratnakumar

hmm, no idea. when all else fails, try restarting. that's the mantra i lived by on Windows

Capn Nemo

Want to try on my current emacs install?

Sridhar Ratnakumar

or we can just ignore the user part

Sridhar Ratnakumar

okay, let's continue from the 'apt install emacs' step above

Capn Nemo

Well what's the next step?

Sridhar Ratnakumar

what happens if you type emacs -nw?

Sridhar Ratnakumar

it works? okay exit it (C-x C-c)

Capn Nemo

Can you send the link again for the Win / Nix install workaround?

Sridhar Ratnakumar

https://github.com/NixOS/nix/issues/2292#issuecomment-443933924

On a fresh install of Ubuntu on WSL when I run: curl https://nixos.org/nix/install | sh I get: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 10...
Capn Nemo

While it's going, I found https://devblogs.microsoft.com/commandline/copy-and-paste-arrives-for-linuxwsl-consoles/

As of Windows 10 Insider build #17643, you can copy/paste text from/to Linux/WSL Consoles!!! We know that this is a feature MANY of you have been waiting for – our sincerest thanks for your patience & continued support while we untangled the Console’s internals,
Capn Nemo

Is there any reason this install instruction is on multiple lines?

Capn Nemo

nix-env -iE '_:
let src = builtins.fetchGit {
url = "https://github.com/srid/neuron"; ref = "master"; };
in import src.outPath { gitRev = src.shortRev; }'

Haskell meets Zettelkasten, for your plain-text delight. - srid/neuron
Capn Nemo

On Win it seems very strange to me to put in a command like that

Sridhar Ratnakumar

clarity in reading. you can join it to be one line

Capn Nemo

If you want to make install even easier for newbies you could put the commands in one-line boxes with a 'copy' button like they do here: https://docs.microsoft.com/en-us/windows/wsl/install-win10

Installation instructions for the Windows Subsystem for Linux on Windows 10.
Capn Nemo

Not needed, just a polish

Capn Nemo

BTW did I read that you left emacs for vim?

Sridhar Ratnakumar

I did, briefly. But I came back to emacs, to use neuron-mode. :slight_smile:

Capn Nemo

Are you using evil?

Sridhar Ratnakumar

right, the default doom configuration.

Sridhar Ratnakumar

mine https://github.com/srid/.doom.d

My Doom Emacs configuration. Contribute to srid/.doom.d development by creating an account on GitHub.
Capn Nemo

Ever get Henrik to set up a +neuron flag? Then we could avoid all of this WSL stuff

Sridhar Ratnakumar

that's a question for @felko i guess.

Sridhar Ratnakumar

wait, but this is nothing to do with WSL. you will need WSL if you want to use neuron

Sridhar Ratnakumar

unless neuron-mode can somehow talk to the neuron in WSL @felko ?

Sridhar Ratnakumar

Basically neuron on native Windows is unavailable. So we use WSL.

Capn Nemo

Oh, sorry - very confusing for me. Neuron is outside emacs. Neuron-mode is in eEmacs.

Capn Nemo

In my mind it's all in a 'not normal Win' category.

Sridhar Ratnakumar

neuron-mode (inside emacs) will run the neuron executable, which is only available in WSL.

Capn Nemo

Right, so it would probably be better for me to get Doom Emacs running in Ubuntu rather than in Emacs for Win the way I currently have it.

Sridhar Ratnakumar

WSL is more or less like a Linux VM on your windows machine..

Capn Nemo

Neuron uses Rib. I'm currently learning Hugo - is Rib anything like Hugo? Or a totally different thing?

Sridhar Ratnakumar

Yes, Rib is like Hugo. But unlike Hugo, you will need Haskell knowledge to use Rib.

Sridhar Ratnakumar

But ... at this point, I'd recommend neuron, rather than rib (or hugo), to create your static sites. My own site is published with neuron (0 lines of code): https://www.srid.ca/

Welcome to the personal home page of Sridhar Ratnakumar, a passionate Haskeller and an actualist. I work as a Haskell consultant (see résumé).
Sridhar Ratnakumar

source code: https://github.com/srid/srid.ca

Personal website based on Zettelkasten. Contribute to srid/srid.ca development by creating an account on GitHub.
Capn Nemo

Yes, I need a non-ZK personal site, that's why I was learning Hugo

Capn Nemo

I tried to google 'rib v hugo' to understand the differences and got all BBQ related links!

Sridhar Ratnakumar

Rib is targeted more towards Haskell programmers.

Capn Nemo

I guess it offers more functionality than Hugo?

Capn Nemo

Could you make Neuron using Hugo, or not possible?

Capn Nemo

OK, I got Neuron running and can see a site at localhost:8080

Capn Nemo

Do I have to stop Rib to use the terminal to make new zettels?

Sridhar Ratnakumar

Rib offers more expressive power, if you will. But you will need to learn Haskell, which can be done, but takes an initial learning curve: https://haskell.zettel.page/2012504.html

Sridhar Ratnakumar

Capn Nemo said:

Do I have to stop Rib to use the terminal to make new zettels?

Not necessary. You can open a second terminal. In fact, leave the rib server running

Sridhar Ratnakumar

At this point, we are ready to setup emacs on WSL

Sridhar Ratnakumar

Just follow the instructions at https://github.com/hlissner/doom-emacs - but do it all in the WSL terminal.

Before installing doom, you can borrow my configuration: https://github.com/srid/.doom.d

An Emacs configuration for the stubborn martian vimmer - hlissner/doom-emacs
My Doom Emacs configuration. Contribute to srid/.doom.d development by creating an account on GitHub.
Sridhar Ratnakumar

Actually use my configuration first.

Sridhar Ratnakumar
git clone https://github.com/srid/.doom.d.git ~/.doom.d

Then install doom.

Sridhar Ratnakumar

copy paste each line separately

Capn Nemo

Shows you what I know. I was wrongly applying my new knowledge that multiple line commands can be combined without problem. :slight_smile:

Sridhar Ratnakumar

What you did originally would have worked on Linux terminal, but Windows terminal is more dumb, that's why it failed :slight_smile:

Capn Nemo

It installed Emacs 25.2.2. Doom needs 26.1. How to upgrade to most recent Emacs

Sridhar Ratnakumar

Hmm, could very well be because of your Ubuntu version. You could try this all again with Ubuntu 20.04

Capn Nemo

The page you linked only hade 16 and 18. How to upgrade to 20?

Sridhar Ratnakumar

This is 20.04 https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6?activetab=pivot:overviewtab

Download this app from Microsoft Store for Windows 10. See screenshots, read the latest customer reviews, and compare ratings for Ubuntu.
Capn Nemo

Do I just close my terminal and install that, or do I need to uninstall anything?

Sridhar Ratnakumar

You can use wsl.exe to manage your distributions in the Windows Subsystem for Linux (WSL), including listing available distributions, setting a default distribution, and uninstalling distributions. https://docs.microsoft.com/en-us/windows/wsl/wsl-config

Sridhar Ratnakumar

maybe you can try uninstalling it first.

Capn Nemo

I'm gonna just install it and see if it's ok

Sridhar Ratnakumar

there is anothe option, you can just run sudo do-release-upgrade that will upgrade your current ubuntu

Sridhar Ratnakumar

probably better to start from scratch with latest version.

Capn Nemo

It's a totally separate installation, new user, etc. so I'll configure it and get back to you.

Capn Nemo

I'm trying to make my unix user a sudo user, but when I follow the instructions and type sudo su - I get "cobblepotuser is not in the sudoers file. This incident will be reported."

Sridhar Ratnakumar

if it is a new install, shouldn't you have been root by default?

Capn Nemo

Yes, but the config instructions say to create a non-root user and make that sudo

Sridhar Ratnakumar

but yea. try restart. when in doubt, start afresh.

Sridhar Ratnakumar

actually forgot about that github repo's instructions

Sridhar Ratnakumar

Start afresh. Install Ubuntu. apt install emacs. Install neuron. Install doom.

Capn Nemo

ok, see you in 20 min! :smile:

Sridhar Ratnakumar

let me know when you are back. we could do a quick screensharing

Capn Nemo

Got an error trying to install nix cache: image.png

Capn Nemo

It worked last time, but I also didn't install zsh last time. I did this time based on the Emacs-WSL instructions.

Capn Nemo

Not sure if related.

Sridhar Ratnakumar

did you install nix per neuron instructions

Capn Nemo

I think so - how to check? It was the latest link you sent.

Sridhar Ratnakumar

want to show me your screen? https://meet.jit.si/neuronwsl

Join a WebRTC video conference powered by the Jitsi Videobridge
Capn Nemo

Yes, can I share just a window or whole-screen only?

Capn Nemo

I have an ultrawide and it doesn't share well

Sridhar Ratnakumar

on bottom right you should see an icon to share screen

Sridhar Ratnakumar

just quit and start the shell again

Sridhar Ratnakumar

like close the window ,and start it

Sridhar Ratnakumar

try sharing your whole screen.

Capn Nemo

Did you see the window last time?

Sridhar Ratnakumar

your screen is frozen for me

Sridhar Ratnakumar

now its frozen, right after you typed exit.

Capn Nemo

See whole thing now?

Capn Nemo

Let me try window again

Sridhar Ratnakumar

that's why it odesn't work i guess

Sridhar Ratnakumar

show me cat /etc/*release

Capn Nemo

True, but I don't know what I'm doing!

Sridhar Ratnakumar

okay close and open the shell

Capn Nemo

Yes, it freezes every time I close the window.

Capn Nemo

I have to share the new window again

Sridhar Ratnakumar

ln -s .profile .bash_profile

Capn Nemo

I am out of by depth. Does this process end with my bank account disappearing? :smile:

Sridhar Ratnakumar

(if you start a new ubuntu shell, and type nix does it work? just to check)

Capn Nemo

ok, now 10 min install. Thanks again for the help!

Capn Nemo

but it starts in zsh

Capn Nemo

doesn't work in bash either

Sridhar Ratnakumar

you can try "echo 'source .profile' >> .bashrc" afterwards

Capn Nemo

that command didn't work - echo

Capn Nemo

how to default to bash rather than zsh? maybe that's the problem

Sridhar Ratnakumar

when you install ubuntu it should be using bash by default. did you install zsh ?

Capn Nemo

yes, it said to in the Emacs WSL page

Sridhar Ratnakumar

chsh is the command you normally use to change shells.

Capn Nemo

Everyone pushes their favorite config I guess

Capn Nemo

what does that mean?

Sridhar Ratnakumar

i was hoping that repo would document just the instructions to get emacs gui working, but it took a messy batteries included approach

Capn Nemo

Yes, trying to get someone all configed in a certain way

Capn Nemo

So do I remove zsh or don't worry about it now? I guesss I won't need Nix after this?

Capn Nemo

BTW I figured out the problem installing the emacs dependencies. under "Install Emacs", the command for installing dependencies has a backslash \ at the end of each line. You must delete these and combine the lines into one to install using the Windows Ubuntu terminal.

Sridhar Ratnakumar

oh keep nix. you will need it to upgrade neuron, if you wish to.

Sridhar Ratnakumar

you can remove zsh yea. apt remove zsh or something like that

Capn Nemo

OK, so we need to get it working in Ubuntu then. It only works in this window, not new instances.

Capn Nemo

I need to close all instances of Ubuntu to do that? Do I do it in Ubuntu?

Sridhar Ratnakumar

let's wait for install to finish

Sridhar Ratnakumar

let's get neuron-mode working first.

Sridhar Ratnakumar

btw, what do you plan to use zettelkasten for?

Capn Nemo

So writing and notes.

Sridhar Ratnakumar

do you plan to publish your notes as well?

Sridhar Ratnakumar

(i read a few articles on that site, but don't frequent)

Capn Nemo

Not sure yet. Probably not, actually.

Capn Nemo

Academics can't be so free to make notes public before publishing articles - both for priority and you don't want to put out a bad version of an argument you're working through.

Capn Nemo

What will you use Neuron for? Now it seems it's mostly for building public knowledge bases, sort of like a Wiki.

Sridhar Ratnakumar

i use it for my private notes (includes journalling). as well as some public sites

Capn Nemo

OK, I can see the local instance of Neuron in my browser.

Sridhar Ratnakumar

okay let's install doom-emacs.

Capn Nemo

How to clone your config?

Sridhar Ratnakumar

Sridhar Ratnakumar said:

git clone https://github.com/srid/.doom.d.git ~/.doom.d

Then install doom.

Capn Nemo

Do I generate an envvar file?

Capn Nemo

Is WSL a fully independent virtual machine? Is it portable? Can I put it on a USB?

Sridhar Ratnakumar

nope. is this your only computer?

Sridhar Ratnakumar

what OS do the others run?

Capn Nemo

I use Dropbox/OneDrive to sync

Sridhar Ratnakumar

in parallel, install this: https://sourceforge.net/projects/vcxsrv/ (would be useful for running GUI vesion of emacs later)

Download VcXsrv Windows X Server for free. Windows X-server based on the xorg git sources (like xming or cygwin's xwin), but compiled with Visual C++ 2012 Express Edition. Source code can also be compiled with VS2008, VS2008 Express Edition and VS2010 Express Edition, although current project and makefile are not fully compatible anymore.
Capn Nemo

Is Doom Emacs GUI? Can any Emacs be GUI?

Sridhar Ratnakumar

emacs is both CLI and GUI.

Capn Nemo

Wait, is my current Doom Emacs GUI? I'm not using it command line. Why do I need VcXSrv?

Capn Nemo

Or is it command line?

Sridhar Ratnakumar

i only know about the emacs in your ubuntu. that emacs is currently CLI only. vcxsrv is needed to run the GUI version of that emacs.

Sridhar Ratnakumar

the windows version? okay

Capn Nemo

OK, doom installed?

Capn Nemo

Looks better than the windows version

Sridhar Ratnakumar

do you remember where your neuron zettelkasten directory is?

Capn Nemo

Just start a new one.

Capn Nemo

Oh, you mean the install? No I don't

Sridhar Ratnakumar

that'll be your (default) directory where notes go

Sridhar Ratnakumar

that's what neuron-mode uses by default

Capn Nemo

I have to quit emacs right?

Sridhar Ratnakumar

back to emacs, and then SPC z z to create a new note

Capn Nemo

Is neuron-mode installed?

Sridhar Ratnakumar

The command neuron-rib-serve will run rib server

Sridhar Ratnakumar

SPC z m l to link to another note

Sridhar Ratnakumar

if you save it it will update

Capn Nemo

When I go to end of line, it only takes the cursor to the > - why?

Sridhar Ratnakumar

because, in the actual file, only ID is there. the "first note" is neuron-mode's magic. it is not actually in the file

Sridhar Ratnakumar

exit emacs, and do cat ~/zettelkasten/7ad*

Capn Nemo

When I deleted the > and did undo, the title didn't reappear.

Capn Nemo

I see. Maybe a feature enhancement to monitor for those during editing.

Capn Nemo

Can I edit the text of "first note" in this note?

Sridhar Ratnakumar

with cursor on that link, SPC m o

Capn Nemo

Title didn't update

Sridhar Ratnakumar

SPC z e is better than doom-emacs's switch buffer, because you get to see the title.

Sridhar Ratnakumar

use SPC z e, not buffer switch

Sridhar Ratnakumar

edit second note, and save again

Sridhar Ratnakumar

oh or use: neuron-refresh-buffer

Capn Nemo

It did update, just took a few tries

Sridhar Ratnakumar

if you are happy with this CLI you won't need GUI

Capn Nemo

Are you looking for feature requests? What's your development plan?

Sridhar Ratnakumar

but most interested in user feedback. pain points, and how it can be made awesome compared to other systems, while sticking to the 'plain text' philosophy

Capn Nemo

Will it run with org-mode as the editor?

Sridhar Ratnakumar

org-mode is different thing.

Capn Nemo

OK, so now I'm using Neuron and NOT emacs, correct?

Sridhar Ratnakumar

you are using neuron with emacs

Capn Nemo

(I can here how old I sound here!)

Sridhar Ratnakumar

https://www.markdownguide.org/

A free and open-source reference guide that explains how to use Markdown.
Capn Nemo

I'm very familiar with markdown

Sridhar Ratnakumar

you might want to store your notes in a reliable place. dropbox or git (i use git)

Capn Nemo

Neuron with emacs, but NOT with org-mode. So does it have features like outlining, code folding, search/replace, etc.?

Sridhar Ratnakumar

you can use all the features of markdown-mode when editing zettels. and markdown-mode seems to support folding, it seems. https://emacs.stackexchange.com/a/7252/2059

First of all, from http://www.emacswiki.org/emacs/AllOut: Allout outline mode is part of GnuEmacs. Allout outline mode provides extensive outline formatting and manipulation beyond stand...
Capn Nemo

markdown-mode uses which markdown flavor?

Sridhar Ratnakumar

dunno, but neuron's parser uses github markdown, but i plan to switch to commonmark (with extensions, like citations)

Capn Nemo

Did you look at MultiMarkdown?

Sridhar Ratnakumar

not really. anyway, i gtg!

Sridhar Ratnakumar

have fun, and post your queries in this stream.

Capn Nemo

Hi @felko - I'm an emacs newbie trying and failing to install neuron-mode in Doom Emacs. Please let me know if there is some time you're planning on being on the channel and are willing to help.

felko

@Capn Nemo hello! I read the last messages, it seems that you were able to run some neuron-mode commands before, did something break?

felko

Sridhar Ratnakumar said:

unless neuron-mode can somehow talk to the neuron in WSL felko ?

Probably with the bash -c command, I can make an option for that, but I won't be able to test it because I don't have a Windows machine

Capn Nemo

Hi @felko I think I did have it working actually. I am so new to emacs that I'm having trouble keeping Neuron and neuron-mode separate in my mind. BTW, what OS are you on? Is it right that Neuron only works in Win through WSL? I am seeing debates online about whether Emacs for Win 10 is better than emacs in Win using WSL. WSL does cause some issues with file/clipboard integration to the rest of the OS.

Capn Nemo

I guess that question is relevant for @Sridhar Ratnakumar also...

felko

I am using macOS, not sure how emacs for windows works, but many emacs package (including neuron-mode) are calling "linux style" commands which are only available from WSL if you use windows. Additionally, I think neuron is indeed only available on windows through WSL so I would say the WSL emacs installation is the only way to get neuron-mode working. Unfortunately I am clueless about how to solve those file/clipboard issues.

Capn Nemo

How is it that macOS + *nix has only 10% market share worldwide but 90% market share among everyone interested in Zettelkasten? Like 70% of ZK software is Mac-only! So crazy... :slight_smile:

Capn Nemo

OK, I'll have to look a bit more and see if WSL is viable for me. Thanks.

felko

@Capn Nemo can you try doing M-: (shell-command-to-string "bash -c 'neuron --version'") from the windows version of emacs?

Capn Nemo

M-: means meta + shift + ; ?

Capn Nemo

I need Shift to create a colon.

Capn Nemo

When I hit that, I get a prompt Eval: - is that expected?

Capn Nemo

I'm in Doom Emacs, BTW

felko

yep, try typing (shell-command-to-string "bash -c 'neuron --version'") after the Eval: prompt

felko

(hopefully the clipboard will work)

Capn Nemo

"/bin/bash: neuron: command not found

felko

wait this is the windows emacs installation anyway, clipboard should work

Capn Nemo

Yes, I only have neuron installed inside WSL

felko

bash should call WSL

Capn Nemo

oh, maybe I have to have WSL Ubuntu running?

felko

I don't think so, try with (shell-command-to-string "wsl neuron --version") (tip: you can hit the up arrow after M-: which will let you edit the previous command)

felko

what happens when you enter WSL then type neuron --version?

felko

(in the terminal, not in emacs)

Capn Nemo

I had a problem with this yesterday. I installed zsh based on some web instructions about WSL. So when I type that, I get zsh: command not found: neuron. But I did have it running yesterday after @Sridhar Ratnakumar gave me some other command to run first.

Capn Nemo

Think it was ln -s .profile .bash_profile

Capn Nemo

Can't get it to work now though.

felko

what's in your .profile (cat .profile)?

felko

try source .profile then retry typing neuron --version

Capn Nemo

got 0.3.1.0 (0d6cb05)

felko

nice, so what happens i think is that your .profile is not executed when WSL starts, that's probably because zsh uses its own file, can you try editing .zshrc and append . /home/cobblepot/.nix-profile/etc/profile.d/nix.sh to it?

Capn Nemo

OK. No idea how to do that. :slight_smile:

Capn Nemo

Literally what do I type?

Capn Nemo

I've never used Unix before this.

Capn Nemo

If it's too much to walk me through it, I understand....

Capn Nemo

I can remove zsh if you tell me how.

felko

Add . /home/cobblepot/.nix-profile/etc/profile.d/nix.sh at the end of your .zshrc file (using doom emacs for example, by typing emacs -nw .zshrc)

felko

did you use doom emacs a little bit before? it is not as straightforward as other editors you might be used to

Capn Nemo

Yes, I already went through that painful process, thanks.

felko

yeah, that should work

felko

ok now try (shell-command-to-string "wsl neuron --version") again, from the windows version of emacs

felko

ok then I have no clue, sorry, you might need to stick to WSL emacs

Capn Nemo

OK, thanks for trying!

felko

you probably won't have file issues if you store your zettelkasten directory on WSL

felko

dunno about the clipboard thing though