Ok, something weird happened today. I have a $HOME/workspace/ where I keep all my code repos. In here I have a local version of a pkg I made js-pkg-mode and since I’m doing local dev on it, I load it locally like so
;; JS utility to install/remove & run package.json scrips regardless of pkg manager used (yarn, npm etc)
(use-package js-pkg-mode
:diminish js-pkg-mode
:straight (:type git :local-repo "~/workspace/js-pkg-mode")
:config
(js-pkg-global-mode 1))
(provide 'setup-js-pkg-mode)
Today, I start emacs and I see my workspace dir containing ONLY js-pkg-mode and just that. I had A LOT of repos here. All of them were deleted. I did receive some warnings from straight before that it wasn’t finding a`: repo` declared, but it went away after a bit. Very, very weird. Does anybody else experience this? I don’t think anything major was lost since I have everything in git, but still… Also, I want to mention that this very big deletion might not be Emacs-related, but it’s very suspicious that the only thing left untouched is the package that is locally loaded in Emacs. OR it might be that it wasn’t deleted because it was still used. I’m still a bit in shock.Yikes! Sorry to hear. There's this thing https://github.com/radian-software/straight.el/blob/0ad6fd8f37bd918c72989df18c76a68649f0a372/straight.el#L6418 AI might help you find other possible culprits
Thanks for looking into it @vemv. I’ll research some myself. One lesson I got from this is I’ll finally start using 1password env to store app secrets. The biggest loss is I lost some api keys I only had in .env files so I have to go and regenerate all of them. Not the worst thing since it’s healty to rotate api keys from time to time
Noob question: how do you guys typically export your org-files to markdown? Emacs is currently escaping stuff like single and double-quotes as if they're being url/html encoded (ex: single-quotes become ’)
It has been a while, but at my last job I had a sort of daily report I was writing as org mode and then using pandoc to turn into markdown, and then paste the markdown into confluence
I use this: https://github.com/larstvei/ox-gfm It covers all of my requirements for org export
hell yea appreciate the options
I have these: yank-as-org, yank-as-markdown https://github.com/agzam/.doom.d/blob/main/modules/custom/writing/autoload/markdown.el