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

[feature request] org-remark-mark-strikethrough #76

Open
LorenRiccie opened this issue Jan 31, 2024 · 7 comments
Open

[feature request] org-remark-mark-strikethrough #76

LorenRiccie opened this issue Jan 31, 2024 · 7 comments

Comments

@LorenRiccie
Copy link

Is it be possible to customize org-remark-mark command to add a strikethrough feature ?

@LorenRiccie LorenRiccie changed the title org-remark-mark-strikethrough [feature request] org-remark-mark-strikethrough Jan 31, 2024
@nobiot
Copy link
Owner

nobiot commented Feb 1, 2024

Yes, you can create a new pen like this:

(org-remark-create "strike-through"
                   '(:strike-through t))

It will create a new command named org-remark-mark-strike-through.

Refer to this section of the user manual.

In this part of the introductory video, I also show and walk you through a little more detail: 03:05 Recap - create a custom pen with CATEGORY.

@LorenRiccie
Copy link
Author

Thank you!

@LorenRiccie
Copy link
Author

I wonder if the marginalia org file could reproduce the pen properties (color). With org-remark-mark-strike-through, the text in the marginalia org file being striked.

@LorenRiccie LorenRiccie reopened this Feb 2, 2024
@nobiot
Copy link
Owner

nobiot commented Feb 2, 2024

Do you mean something like this? See if this works for you.

org-remark-create "strike-through"
                   '(:strike-through "red"))

"red" can be a hex color value: "#112233".

I suggest you refer to this part of Elisp manual https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html

@nobiot
Copy link
Owner

nobiot commented Feb 2, 2024

If you want to change the colour of the text being striked through (instead of the line) try :foreground.

@LorenRiccie
Copy link
Author

Thanks. I meant in the data .org file keeping the highlights and notes. If I striked something in the main document it will make sense to have the text striked there too.

@nobiot
Copy link
Owner

nobiot commented Feb 2, 2024

Can you give me an example, please?

I tend to have multiple paragraphs in my marginal notes. If i strike-through the highlight in the main file, it does not make sense to reflect it in the marginal notes to me.

For example, I may have a paragraph in the main document that contains "romanesque architecture" and I highlight it.

I then write some research notes and quotations from Wikipedia, for example.

If I strike through "romanesque architecture" in the main file for some reason, I do not want to change anything of my marginal notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants