Support Vim, Tmux, Emacs with Stow

After moving off of Meta, Dotfiles has a greater responsibility to
manage configs. Vim, Tmux, and Emacs are now within Stow's purview.
This commit is contained in:
William Carroll 2018-09-10 14:51:14 -04:00
parent 8b2fadf477
commit 17ee0e400b
1338 changed files with 330350 additions and 24 deletions

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: exactness
# key: $x
# --
$Exact<$Call<typeof $1>>

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Console.log helper
# key: clg
# --
console.log($1)

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: const definition
# key: cn
# --
const $1 = '$2'

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: const function
# key: cfn
# --
const $1 = ($2) => {
$3
}

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Destructuring a const
# key: cds
# --
const { $1 } = $2

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Fat arrow function
# key: fa
# --
=>

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Fat arrow function
# key: faf
# --
() => {
$1
}

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Import destructured
# key: ids
# --
import { $1 } from '$2'

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Import React dependency (ES6)
# key: ir
# --
import React from 'react'

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: import type
# key: ixt
# --
import type { $1 } from '$2'

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: import x from y
# key: ix
# --
import $1 from '$2'

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: import y
# key: iy
# --
import '$1'

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: Jest describe/test block
# key: dsc
# --
describe('$1', () => {
test('$2', () => {
expect($3).toEqual($4)
})
})

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Jest / Jasmine test
# key: tst
# --
test('$1', () => {
expect($2).toBe($3)
})

View file

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: React class extends
# key: clz
# --
class $1 extends React.Component {
render() {
$2
}
}
export default $1

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: redux-action
# key: rax
# --
export const ${1:$$(lower->caps yas-text)} = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: typed-redux-action
# key: trax
# --
export const ${1:$$(lower->caps yas-text)}: '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}' = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'