0 Followers
0 Following
1 Posts

I’m not 100% sure what you’re referring to, but having #’ before a function is is to tell the reader/compiler that you’re specifically referring to the function of the name that comes after it. You could just do and that works in Emacs Lisp, but it’s more technically correct in this case to do #’ as org-deadline is a function.

If that’s not what you’re referring to, I apologize.

Complex Capture Template: rx '**' range error?

https://lemmy.world/post/16142317

Complex Capture Template: rx '**' range error? - Lemmy.World

Hello, friends! So I have a complex way of capturing TODO tasks for today or week. Someone will probably tell me that there’s a package out there somewhere to do this easier, but regardless I would like to figure this out. Here’s the function I use: (defun org-capture::today-task-tree () “Create a task tree for tasks TODO today.” (let* ((time-string (format-time-string “<%Y-%m-%d %a>” (current-time))) (heading (concat "[%] " time-string)) (heading-rx (rx (group “[” (0+ num) “%]”) (0+ space) (group (literal time-string))))) (goto-char (point-max)) (if-let (pnt (re-search-backward heading-rx nil t)) (goto-char pnt) (goto-char (point-max)) (or (bolp) (insert “\n”)) (insert "* " heading “\n”) (beginning-of-line 0)) (org-end-of-subtree))) And here’s the org-capture-templates entry: (“gt” “Today: A task for today” entry (file+function ,(expand-file-name “~/Documents/Org/GTD/work.org”) org-capture::today-task-tree) (file ,(concat my-emacs-dir “capture-templates/datetree-weekly-tasks.tmplt”)) :empty-lines-after 1 :after-finalize (lambda () (org-update-statistics-cookies t))) And here’s the actual capture template that I store in a file in my config: ** [ ] [#%^{Priority}] %^{Task name} %(funcall-interactively #'org-deadline nil (current-time)) %^g %? %i Now when I’m in that file ~/Documents/Org/GTD/work.org and I run the above function with M-: org-capture::today-task-tree it works fine. An example of what the file will look like it: * [100%] 2024-04-27 Mon ** [X] Do something important this Monday #[A] :work: CLOSED: 2024-04-27 Mon 12:42 DEADLINE: 2024-04-27 Mon * [%] 2024-04-28 Tues ** [ ] Do something else that’s not as important #[B] :personal: DEADLINE: 2024-04-27 But for whatever reason when I run org-capture and finish the capture with C-c C-c or refile with C-c C-w I get rx–translate-bounded-repetition: rx ‘**’ range error Which I don’t really know what that means nor how to fix it, and I can’t really find anything useful via searching the internet at the moment. A possible thing to not is that I disable Org’s element caching [https://codeberg.org/alecStewart1/dots/src/commit/509d89c9f2a0c8a057ebc916e0784466c9be6b73/emacs/.emacs.d/lisp/writing.el#L565]. If you want to look at my configuration to dig around some, you can find it here [https://codeberg.org/alecStewart1/dots/src/branch/main/emacs/.emacs.d] and the part where my configurations for Org-Mode are here [https://codeberg.org/alecStewart1/dots/src/commit/509d89c9f2a0c8a057ebc916e0784466c9be6b73/emacs/.emacs.d/lisp/writing.el#L85].

Plus, ZFS supports native encryption!

Hmm, I think that was the one I was wondering about. I use Gentoo, and when I was initially setting everything up on my machine, I saw there were a lot of caveats for using ZFS on linux from the Gentoo wiki entry on it. Maybe that’s changed or those issues are no longer related to native encryption specifically.

ZFS - Gentoo wiki

Is ZFS on Linux getting better? I’ve heard mixed things. I use BTRFS on my daily driver, and I really like (ab)using the file compression with zstd.

If you are not too stuck on bsd

Not really. It’s more out of the curious of how DragonflyBSDs HAMMER2 filesystem works. I’ve good things about it and ZFS on FreeBSD. ZFS on Linux I’ve heard is still getting up to where it is on FreeBSD.

It’s the interest in how well the HAMMER2 filesystem works for everyday storage, as well as how swapcache performs. Not much besides that, plus I’ve generally decent experiences with Net and OpenBSD.

www.dragonflybsd.org/performance/

DragonFlyBSD: performance

If you’re gonna spend that level of money, you may as well go for an M1 Mac Mini.

I was joking. I don’t feel like shelling out $600 for a starting media server.

If you really want Intel, just get an N100 or N300. Low power, Intel HW transcoding on iGPU on Linux kernels 6.3+, and can handle Jellyfin no problem.

Didn’t think about that either. I’m finding I didn’t give this as much thought as I should’ve.

You can get a minipc with everything you for $175 for a no name brand, or maybe $250 for a more well-known brand.

But why do that when I could spend +$600? 😜

system76

Good point. So what we’re really talking about then is

  • something like a raspberry pi
  • 1 or 2 hard drives for base storage
  • 1 external hard drive as a backup

I don’t think anyone here would recommend BSD

I’m guessing this is due to issues of support, compared to Linux?