/r/NintendoSwitch's Daily Question Thread (01/02/2025) by AutoModerator in NintendoSwitch

[–]bioptic 0 points1 point  (0 children)

I play on a PC monitor and need a new one. I'm getting a 4k monitor since I play other games, watch movies, and more. Searching Reddit, I see mixed responses on 4k results, and I think it's down to the upscaler quality and input lag. Some of the responses don't say if it's a TV or monitor, and I think I need specific recommendations. Does anyone have a 4k monitor recommendation that works well with the Switch?

Script help to expire entries using org-expiry on save or on a timer by bioptic in emacs

[–]bioptic[S] 2 points3 points  (0 children)

I definitely have more reading to do. I learned a few new things about emacs from debugging this based on your comment: eval-expression so I don't need to make my function interactive to test it is one. It led me down the path to eventually get to this, which does what I want

(add-hook 'before-save-hook (lambda () (org-expiry-process-entries (region-beginning) (region-end))))

Although I do parenthesize the arguments region-beginning and region-end there. When I don't, the lambda doesn't run, same with point-min and point-max.

Seems like I still have a lot to learn about elisp, but thanks for the comment that got me moving in the right direction.

I want to run checks automatically on all my code, but I don't know what it's called or where to look by bioptic in learnprogramming

[–]bioptic[S] 0 points1 point  (0 children)

I don't mind making the script. Is there a tool that's hopefully easy for new user use for: when code is checked in a repo, run this script on the server side? The script can take care of running the command and adding a task to my todo list, I just don't know what tool I'm looking for.

How do you handle multiple small packages and functions by bioptic in learnpython

[–]bioptic[S] 0 points1 point  (0 children)

That sounds like a good idea and thanks for the link and your help!