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 @@
# -*- mode: snippet -*-
# name: add_column
# key: op.add_column
# --
op.add_column('${1:table}', sa.Column('${2:name}', sa.${3:String()}))$0

View file

@ -0,0 +1,15 @@
# -*- mode: snippet -*-
# name: decorate
# uuid: decorate
# key: decorate
# condition: t
# --
def wrap(inner):
@wraps(inner)
def wrapped(*args, **kwargs):
ret = inner(*args, **kwargs)
return ret
return wrapped
return wrap

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: dunder
# uuid: dunder
# key: du
# condition: t
# --
__$1__$0

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: name
# uuid: name
# key: name
# condition: t
# --
__name__

View file

@ -0,0 +1,7 @@
# key: exec
# name: op.get_bind.execute
# --
op.get_bind().execute(
"""
`(progn (sqlup-mode) "")`$1
""")

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: pdb
# uuid: pdb
# key: pdb
# condition: t
# --
import pdb; pdb.set_trace()