this post was submitted on 23 Nov 2023
0 points (50.0% liked)

Emacs

310 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

tl;dr why do my org links not have a space before them (e.g. check out thisLINK)? I feel I'm missing something very basic here.

I was using org-roam today in doom emacs and forgot how irritating adding a new node is while writing.

It nestles nicely up to the text before it - with no space in between. After posting on r/orgroam a kind soul told me this might be a wider issue - at least related to org itself, and maybe doom.

Does anyone know how to get a leading space before the node name / link? For example; my nodes come out looking like:

something interesting is in thisNODENAME/LINK check it out

For the love of RMS I want a space between this and NODENAME

I'm clearly being dumb, but can't figure this out. Surely enough people use emacs / doom emacs / org mode, and they are not all adding links everywhere with no leading space?

A suggestion on r/orgroam was put a double space before a link - is that it?

you are viewing a single comment's thread
view the rest of the comments
[–] yigitemres@alien.top 1 points 10 months ago (5 children)

This is link example with org-roam id:

something interesting is in this [[id:aaaa-aaa-aaa-aaaa-aaaa][A]] link. Check it out...

This is link example with file location:

This is link example: something interesting is in this [[file:parent/b.org][B]] link. Check it out...

And they gonna look like this.

[–] thephatmaster@alien.top 0 points 10 months ago (4 children)

I feel I haven't explained properly. Typing links out manually works fine (like your example).

But I don't get the preceeding space using org-store-link (or using org-roam-node-insert or org-roam-node-find - presumably these call org-store-link.

My workflow is:

  1. In insert mode, type text, with a trailing space before where I want the link;
  2. Somehow when I exit insert mode, the trailing space after my text gets deleted; and
  3. In normal mode, call org-store-link (or one of the roam ones).

What I end up with is the link nestled against the last non-space charachter of my text

[–] yigitemres@alien.top 1 points 10 months ago

Your problem is about the evil mode(or anything hooks with it) not the org-roam itself...

load more comments (3 replies)
load more comments (3 replies)