Skip to content

Instantly share code, notes, and snippets.

View cbilson's full-sized avatar

Chris Bilson cbilson

View GitHub Profile
function Start-EmacsClient {
[CmdletBinding()]
param(
[switch] $NewWindow,
[switch] $CreateFrame,
[switch] $Wait,
$AlternateEditor = 'notepad',
[Parameter(Position=0, ValueFromRemainingArguments)]
[string[]] $RestArgs)
@cbilson
cbilson / .gitconfig
Last active August 22, 2017 08:50
My .gitconfig
[user]
email = cbilson@microsoft.com
name = Chris Bilson
[core]
editor = "'C:/ProgramData/Chocolatey/bin/emacsclientw.exe' --quiet --alternate-editor=notepad $*"
[diff]
tool = bc4
{:user
{:offline? false
:plugins
[[lein-pprint "1.1.2"]
[lein-ancient "0.5.5"]
;; [cider/cider-nrepl "0.7.0"]
[cider/cider-nrepl "0.8.0-SNAPSHOT"]]
:dependencies
[[im.chit/iroh "0.1.11"]
[im.chit/vinyasa "0.2.2"]
function Find-MaybeChocolateyProgram($Path, $Name, $ChocolateyPackageName) {
if (!$Path) {
$commandFromEnvPath = Get-Command $Name
if ($commandFromEnvPath -ne $null) {
return $commandFromEnvPath.Definition
}
if (!(Test-Path env:ChocolateyInstall)) {
throw "Chocolately not installed. Please tell me where $Name is."
@cbilson
cbilson / .tmux.conf
Last active August 22, 2017 08:54
My FreeBSD Config Files
# Set the prefix to ^z
#unbind-key C-b
set-option -g prefix C-z
bind-key C-z send-prefix
# screen ^C c
unbind-key ^C
bind-key ^C new-window
unbind-key c
bind-key c new-window
@cbilson
cbilson / EmacsServer.ps1
Created June 13, 2014 15:40
Make emacs server work on windows
if (Test-Path ~\.emacs.d\server) {
$acl = Get-Acl ~\.emacs.d\server
$acct = [Security.Principal.NTAccount] "$env:USERDOMAIN\$env:USERNAME"
$acl.SetOwner($acct)
Set-Acl ~\.emacs.d\server $acl
}
@cbilson
cbilson / DevBox.ps1
Created June 11, 2014 15:54
Boxstarter DevBox script
Update-ExecutionPolicy Unrestricted
if (!(Test-Path $env:UserProfile\OneDrive\Documents)) {
New-Item -Force -Path $env:UserProfile\OneDrive\Documents -Type Directory
}
Move-LibraryDirectory "Personal" "$env:UserProfile\OneDrive\Documents"
Set-ExplorerOptions -ShowHidenFilesFoldersDrives -ShowProtectedOSFiles -ShowFileExtensions
Set-TaskbarSmall
set incsearch
set hlsearch
set smartcase
let mapleader=","
map <Leader>n :nohl<cr>
set hintchars=aoeuidhtns
set editor='gvim'
@cbilson
cbilson / _vsvimrc
Last active August 29, 2015 13:56
My vsvimrc, with <Leader> R# mappings
"
" VsVim Specific Settings
"
set vsvim_useeditordefaults
set incsearch
set clipboard=unnamed
set number
set hlsearch
set smartcase
@cbilson
cbilson / README.md
Last active November 18, 2022 23:19
Messing around with screen capture -> http(hls)