Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need an ID on new note entries (for org-brain) #62

Closed
rosetree opened this issue Mar 6, 2019 · 3 comments
Labels

Comments

@rosetree
Copy link

@rosetree rosetree commented Mar 6, 2019

Recently I combined org-noter with the also wonderful org-brain wiki and concept mapping package. This setup allows me to organize the documents in a map and have all notes attached to them in their hierarchy.

org-brain only shows entries that have an ID. So it would be great if there was an org-noter-insert-heading-hook where I could just add org-id-get-create. This could look similar to the configuration in #20, with the exception that my suggestion could limit the ID creation to org-noter notes.

What do you think? Could this be done in org-noter or should I use the org-insert-heading-hook instead?

@weirdNox

This comment has been minimized.

Copy link
Owner

@weirdNox weirdNox commented Mar 7, 2019

Ok, this is doable!

@weirdNox

This comment has been minimized.

Copy link
Owner

@weirdNox weirdNox commented Mar 7, 2019

Could you try and see if it works? Just committed it :)

@rosetree

This comment has been minimized.

Copy link
Author

@rosetree rosetree commented Mar 7, 2019

(add-hook 'org-noter-insert-heading-hook #'org-id-get-create)

works as expected! Thanks, for your fast response.

@rosetree rosetree closed this Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.