Hacker News new | past | comments | ask | show | jobs | submit | alexkehayias's comments login

You have to fill in some gaps (and occasional paranthesis) but it’s pretty darn good at writing elisp for improving your config. I find it’s helpful enough that you can take on medium hanging fruit that you wouldn’t attempt otherwise.

For example, I wrote a minor mode for centering text, an org-export backend for Notion, and some plumbing for chatgpt-shell.

https://notes.alexkehayias.com/using-chatgpt-with-emacs/


I have a pretty similar workflow for publishing my personal notes which is exported using GitHub actions. https://notes.alexkehayias.com

Relevant emacs init code here (a lot of hacks to get exporting to ox-hugo to work and improve performance): https://github.com/alexkehayias/emacs.d/blob/master/init.el#...

I find navigating notes with an interactive graph as not that useful for others. I mostly use org-roam-ui myself to spot notes with no links but otherwise there's way too many nodes to do anything other than randomly click around.


> a lot of hacks to get exporting to ox-hugo to work

Hello! Please feel free to start a discussion on https://github.com/kaushalmodi/ox-hugo/discussions listing the things you need to tweak in ox-hugo to make it work with Org Roam.

In the past 3 months or so, I have been adding test Org files received from Org Roam users and they seem to be exporting alright.

Tests: https://github.com/kaushalmodi/ox-hugo/tree/main/test/site/c...

I'd welcome more tests there :)

> and improve performance [your config link]

From your config, I see this[1] overriding `org-hugo-link--headline-anchor-maybe`. I am following a general Emacs Lisp convention of naming internal-use functions and variables with `--` in the names. Unfortunately, that advice won't do anything with the latest ox-hugo as I replaced that particular internal function with something else in past few months as I was improving the anchoring scheme to support an Org Roam user with linking headings based on UUID.

At that point I had added this documentation on Anchors[2] in ox-hugo manual. If you set `org-hugo-anchor-functions` to nil, or add a dummy function to it that just returns "", it would do the same thing as you are doing in your advice right now (not tested).

*Note that will basically break the ability to refer to other sub headings by UUID, CUSTOM_ID or any other mechanism.*

---

I'd welcome contributions to ox-hugo code, documentation so that it can help other Org Roam users too. Even if it doesn't make it into the repo, having a discussion related to ox-hugo + Org Roam issues/tips+tricks in the ox-hugo Discussions forum will be useful to others.

Thanks!

---

[1]: https://github.com/alexkehayias/emacs.d/blob/3b546048cc60976...

[2]: https://ox-hugo.scripter.co/doc/anchors/


:-) Thanks for pointing out FastAPI!

You're right, far less churn than when I came back to js after leaving off at backbone/coffeescript/grunt...


Thank you! re: sqlalchemy, are there more options for python micro web frameworks like Flask? I enjoyed flask + sqlalchemy in the past.


You will love fastapi. It also works with sqlalchemy.


Thanks for the heads up about graphQL—I think I'll avoid for now. It will be for a new project so not a big deal.

I just had a quick look at PyTorch... you're totally right this is miles ahead of what I remember.

I forgot to ask about package management. Do you use pip, conda, poetry?


Personally I love poetry, if for no reason other than making publishing a breeze. If I can’t use it for some reason, I like managing virtual envs with pyenv (not to be confused with pipenv. You’re better off for having missed the controversies around that)

Oh btw virtualenv is gone now; you make envs using python -m venv myEnvName


Nice, I’ll check out poetry.

That’s great that some of the virtualenv functionality made its way into the standard library!


Thanks, didn’t know about py video. I will take a look!


I wrote a little tool to help check Rust crates on GitHub. It's been really interesting seeing how different libs use unsafety. https://github.com/alexkehayias/harbor


I've gotten early access and have been trying it out. So far it's been incredibly easy to use (one time cards is awesome for ordering food or trying out new merchants/startups) and I enjoy the notifications. I just received the plastic card so it may end up being my primary card replacing a Chase Freedom card I have had forever (also 1% cashback). As for the comments about annual fees, if this becomes your primary card I think it will more than pay for itself over a year.


Looking forward to working with you! I'm joining next week to work on Atlas too.


Anyone know if the firmware allows you to program keys to emulate a mouse? I use this often with tmk_keyboard https://github.com/tmk/tmk_keyboard firmware and found it to be just good enough to never use a mouse and keep the keyboard on your lap which is much better for my shoulders.


No, but contact the support ( http://www.kinesis-ergo.com/support/technical-support/contac... ) they are wonderful.


Agreed, this could be a feature that could be added if there is enough demand with the firmware.


On OS X Karabiner probably lets you. Maybe their firmware could also if you contact them. I once got sent a debut version of their software for the foot pedals and it had tons of cool hidden functionality.


yep. but you're limited to using d as the trigger for the mouse. it should be customisable somewhat but i haven't explored about that.


Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: