3

I use org-mode a a lot and take notes in Org files. I like to sometimes highlight some important text. I colored bold to be red but it doesn't span multiple lines. And I couldn't get that to work using multiple stackexchange solutions. So I opted to mark the lines I want to boldify with asterisks. But that is taking time. How would I implement a function in Elisp that does that for me automatically.

Basically in this snippet of text:

This is a test to make sure I can []highlight some text in org-mode
And hopefully someone would be able to help me.[]

Now if I highlighted the region between [] [] and then use the function, the text will change to:

This is a test to make sure I can *highlight some text in org-mode*
*And hopefully someone would be able to help me.*

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.