Skip to content

Instantly share code, notes, and snippets.

View antler5's full-sized avatar

antlers antler5

View GitHub Profile
@antler5
antler5 / kanata-lily58-taipo.kbd
Last active May 15, 2024 03:37
kanata-lily58-taipo.kbd
;; SPDX-FileCopyrightText: 2024 antlers <antlers@illucid.net>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
;; As with my other keyboard Gists, here's a snapshot of my Taipo config as
;; I transition from copying upstream to tweaking for myself (ie. it's as
;; close to upstream as it'll ever be).
;;
;; The Scheme code used to generate these bindings can be found in my
;; kanata-config repo at commit 'cdad9bcb3' (once published).
#!/usr/bin/env -S guile -L . -e '(@ (git-explode) main)'
git-explode
Commits unstaged changes from the current worktree into the repo one hunk at a
time. I made this in order to automatically bisect linux kernel configurations,
and it may be most useful with similer deltas, ie. those consisting of several
dozen or hundred single-line changes which allow _each_ individual hunk of a
diff to produce a potentially valid state.
;;; Copyright © 2023 antlers <antlers@illucid.net>
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation, either version 3 of the License, or
;;; (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@antler5
antler5 / early-init.el
Last active December 13, 2023 07:59
My Emacs Config as of /right now/
;;; early-init.el -*- lexical-binding: t; -*-
;; Substantial credit to mnewt's dotemacs repo
;; Never load outdated bytecode
(setq load-prefer-newer t)
;; Garbage Collection Pt. 1
(setq gc-cons-threshold most-positive-fixnum)

Keybase proof

I hereby claim:

  • I am antler5 on github.
  • I am antlers (https://keybase.io/antlers) on keybase.
  • I have a public key whose fingerprint is F431 E01A C195 CB14 4484 E7DC 79AB D155 1412 B973

To claim this, I am signing this object:

/* -*- mode: c -*- */
/*
* Copyright (c) 2020 The ZMK Contributors
* Copyright (c) 2020 antlers <antlers@illucid.net>
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the “Software”), to deal

openpgp4fpr:f431e01ac195cb144484e7dc79abd1551412b973

@antler5
antler5 / with-refs.scm
Created October 6, 2022 05:58
`with-refs` Macro
(define-module (antlers utils with-refs)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-9)
#:export (with-refs))
;;; Commentary:
;;
;; The first draft looked like this, which, to be honest, I kind of like for it's simplicity.
;; Ditched it because of the repetitive match-lambda-lists and hash-set/-ref