feat(aspen/emacs): Begin a complete emacs config revamp

I'm still on doom, but without all the cruft I've accumulated over the
last ~6 years it's actually good and fast and nice. Also, the config is
literate now!

The old emacs is still in .emacs.d, since occasionally I want to
reference it, but eventually I'll just get rid of it

Change-Id: Icda840d798594f7e6b188dba044494597d5f6043
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10999
Reviewed-by: aspen <root@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Aspen Smith 2024-02-20 16:31:30 -05:00 committed by aspen
parent 7ecf43a1bd
commit acc2433b65
66 changed files with 2245 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# key: macro_use
# name: #[macro_use]
# --
#[macro_use]
${1:extern crate} ${2:something};$0

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: async test
# uuid: atest
# key: atest
# condition: t
# --
#[tokio::test${1:(flavor = "multi_thread")}]
async fn ${2:test_name}() {
`%`$0
}

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: benchmark
# uuid: benchmark
# key: bench
# condition: t
# --
#[bench]
fn ${1:benchmark_name}(b: &mut Bencher) {
`%`b.iter(|| $0);
}

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: proptest
# uuid: proptest
# key: proptest
# condition: t
# --
#[proptest]
fn ${1:test_name}($2) {
`%`$0
}

View file

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: test-module
# uuid: test-module
# key: tmod
# condition: t
# --
mod $1 {
use super::*;
$0
}

View file

@ -0,0 +1,9 @@
# key: tests
# name: test module
# --
#[cfg(test)]
mod ${1:tests} {
use super::*;
$0
}