| (defvar gt/weekly-review-capture-template | |
| `(("d" "default" entry | |
| "* %?" | |
| :if-new (file+head | |
| "%<%Y-%m-%d>-weekly-review.org" | |
| "%[~/org/roam/templates/weekly-review-template.org]")))) | |
| (defun gt/weekly-review-capture (&optional no-visit) | |
| "Create a weekly review note from the appropriate template" | |
| (interactive) |
| ;; I wanted to be able to use mu4e contexts without showing my emails in GitHub dotfiles or creating another file to store the email accounts. | |
| ;; All email account information can be found in "~/.mbsyncrc", so I decided to work out a way to automatically create mu4e contexts based on all the sync-ed email accounts with mbsync. | |
| ;; (This method will not work for people not using mbsync, but the same idea can be applied to achieve the same results) | |
| ;; Since this function uses regular expressions to scrape the required data, it has some pre-defined format needed in "~/.mbsyncrc": | |
| ;; - "# Account: " is placed on top of every account to indicate different accounts | |
| ;; - "# Full Name: " below "# Account: " for the user's name | |
| ;; - "# SMTP " below "# Full Name: " needs the SMTP configurations | |
| ;; - "IMAPAccount ..." is used as the name of the account context | |
| ;; - "User ..." is the email address |
| #!/bin/bash | |
| # Launch Dired in a plain Emacs configuration. | |
| # Arguments are passed to Emacs, e.g. "-nw" works as expected. | |
| emacs -q "$@" \ | |
| --eval "(dired default-directory)" \ | |
| --eval "(defun kill-window-or-emacs () (interactive) (if (one-window-p) (kill-emacs) (delete-window)))" \ | |
| --eval "(setq dired-dwim-target t delete-by-moving-to-trash t)" \ |
| (use-package general | |
| :config | |
| (general-create-definer rune/leader-keys | |
| :keymaps '(normal insert visual emacs) | |
| :prefix "SPC" | |
| :global-prefix "C-SPC") | |
| ;; okay so take from : https://github.com/noctuid/general.el | |
| ;; rune/leader-keys is defined just above this as a "general-create-definer" |
| (declare (standard-bindings)(extended-bindings)(block)(fixnum)(not safe)) | |
| ;;; From Text-File Databases at https://sites.google.com/site/schemephil/ | |
| ;;; READ-CSV-RECORD [SEP] [PORT] | |
| (define (read-csv-record . args) | |
| (define (add-char-to-field c field) | |
| (let ((length (field-length field)) |
(updated versions of this document, plus more, live here)
This will show you how to get Guix running on WSL2.
We're going to go as "minimal" as possible, without starting off one of the readily available WSL2 distros.
Parts of this guide should help with understanding how to set up any custom distro on WSL, not just Guix.
Disclaimer: I'm a Guix nOOb! (hence going through the trouble of installing it on WSL2)
| On void linux. | |
| Under `/etc/containers/` there is a file called `registries.conf`. It is complemented by `man 5 containers-registries.conf`. | |
| Change (for me lines 11-12) which say | |
| [registries.search] | |
| registries = [] | |
If you wan't a cljs that acts like clj, but for ClojureScript, there are a few minor changes you can make:
First, add the following entry to ~/.clojure/deps.edn under the :deps key:
org.clojure/clojurescript {:mvn/version "1.10.439"}
Then make copies of clj and clojure named cljs and clojurescript, and put those copies on your path.
on linux 4.19, I get
error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
when trying to install stuff on a ubuntu docker container. this seems to be an issue with metacopy https://www.spinics.net/lists/linux-unionfs/msg06109.html
issue can be worked around by running