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:
parent
7ecf43a1bd
commit
acc2433b65
66 changed files with 2245 additions and 0 deletions
5
users/aspen/emacs/snippets/rust-mode/#[macro_use]
Normal file
5
users/aspen/emacs/snippets/rust-mode/#[macro_use]
Normal file
|
@ -0,0 +1,5 @@
|
|||
# key: macro_use
|
||||
# name: #[macro_use]
|
||||
# --
|
||||
#[macro_use]
|
||||
${1:extern crate} ${2:something};$0
|
10
users/aspen/emacs/snippets/rust-mode/async test
Normal file
10
users/aspen/emacs/snippets/rust-mode/async test
Normal 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
|
||||
}
|
10
users/aspen/emacs/snippets/rust-mode/benchmark
Normal file
10
users/aspen/emacs/snippets/rust-mode/benchmark
Normal 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);
|
||||
}
|
10
users/aspen/emacs/snippets/rust-mode/proptest
Normal file
10
users/aspen/emacs/snippets/rust-mode/proptest
Normal file
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: proptest
|
||||
# uuid: proptest
|
||||
# key: proptest
|
||||
# condition: t
|
||||
# --
|
||||
#[proptest]
|
||||
fn ${1:test_name}($2) {
|
||||
`%`$0
|
||||
}
|
11
users/aspen/emacs/snippets/rust-mode/test-module
Normal file
11
users/aspen/emacs/snippets/rust-mode/test-module
Normal file
|
@ -0,0 +1,11 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: test-module
|
||||
# uuid: test-module
|
||||
# key: tmod
|
||||
# condition: t
|
||||
# --
|
||||
mod $1 {
|
||||
use super::*;
|
||||
|
||||
$0
|
||||
}
|
9
users/aspen/emacs/snippets/rust-mode/tests
Normal file
9
users/aspen/emacs/snippets/rust-mode/tests
Normal file
|
@ -0,0 +1,9 @@
|
|||
# key: tests
|
||||
# name: test module
|
||||
# --
|
||||
#[cfg(test)]
|
||||
mod ${1:tests} {
|
||||
use super::*;
|
||||
|
||||
$0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue