reddit / emacs

How to mark region and make lists in orgmode?

paarulakan · 2022-10-26 14:34
I often use org-capture from browser. When I do, i lose a lot of formatting which I am okay with most of the time, but when I need lists like the one below, it is very tedious to manually make one. How to mark the region and make them into a list separated by newlines. How to make this into ** [[[https://schnouki.net/post/2018/backup-totp-secrets-with-emacs/](https://schnouki.net/post/2018/backup-totp-secrets-with-emacs/)][/dev/schnouki – Backup TOTP secrets with Emacs]] How to use: Add a new service using FreeOTP In the Org file, run the FreeOTP backup script (put the cursor on it and press C-c C-c): the result appears under the script Copy the secret in a new line in the table Fill the rest of the line (issuer, label, image if wanted, and put the image on my server if needed) Generate the URI by updating the table (put the cursor on it and press C-c C-c) Regenerate the QR code by running the appropriate script (put the cursor and guess what you need to do now) Re-add the service to FreeOTP with the new QR-code that includes a nice image. this? ** [[[https://schnouki.net/post/2018/backup-totp-secrets-with-emacs/](https://schnouki.net/post/2018/backup-totp-secrets-with-emacs/)][/dev/schnouki – Backup TOTP secrets with Emacs]] How to use: - Add a new service using FreeOTP - In the Org file, run the FreeOTP backup script (put the cursor on it and press C-c C-c): the result appears under the script - Copy the secret in a new line in the table - Fill the rest of the line (issuer, label, image if wanted, and put the image on my server if needed) - Generate the URI by updating the table (put the cursor on it and press C-c C-c) - Regenerate the QR code by running the appropriate script (put the cursor and guess what you need to do now) - Re-add the service to FreeOTP with the new QR-code that includes a nice image.
mickeyp · 2022-10-26 14:57
1. Put point at the beginning of the first line. 2. Hit `C-SPC` to place the mark. 3. Move point to the beginning of the last line. 4. Type `C-x r t` to enter rect insert mode. Type `- `.
rpluim · 2022-10-26 15:05
Or `C-c -`, which lets you cycle between the different list types.
mickeyp · 2022-10-26 15:08
Yep, that's a good org mode-specific solution!