Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Org mode by default just uses your user agent stylesheet. Adding some CSS is trivial, so just write your own damn styles instead of adding a sandyuraz.com dependency for no reason.

Adding interactivity on the other hand is more involved. I recommend org-info-js which is what I use with my journals. https://orgmode.org/manual/JavaScript-support.html



Author here! I’m not the biggest fan of having thousands and thousands of external dependencies. I’m not too big on frontend but I have been using org mode for couple of years now. Just wanted to share some small adjustments one can make to make results prettier! If I made one for myself, literally anyone can copy it or make their own to their style


The sandyuraz.com dependency might be a good starting point for people who don't know how to make CSS styles, though, or want an example to go off of!


You seem offended someone provided some styles that help along with an easy way to integrate them.

One could easily copy those styles, extend them or host it themselves. Why the vitriol?


I would be supportive if the advice is “copy those styles, extend them or host it themselves”, not adding a dependency that’s bound to be broken sooner or later. There are way too many bloated, slow, or broken websites due to linking to random blurbs from the internet.


Not sure if this was added later, but it says exactly that...

or just use the bare CSS as a starting point to make your own (everyone has their own style)


Also, I added back/forward support to org-info-js (along with a GPL license) here: https://github.com/cosmicexplorer/org-info-js. I haven't used it in a bit, but feel free to take the code e.g. from https://github.com/cosmicexplorer/org-info-js/commit/d72b310... if you're looking to improve the default org-info-js situation.


Back/forward with b/B is built in, but I guess additional integration with history doesn’t hurt.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: