Skip to content

Instantly share code, notes, and snippets.

View bleggett's full-sized avatar
💭
bleppin'

Ben Leggett bleggett

💭
bleppin'
  • Within The Bromley Contingent
  • 02:05 (UTC -04:00)
View GitHub Profile
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
# Use C-a as default prefix.
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Enable scrolling
set -g mouse on
# Use split commands I like
bind s split-window -v
bind v split-window -h
unbind '"'
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
@bleggett
bleggett / subtitle-overlap-fixer.go
Created April 8, 2019 01:05 — forked from nimatrueway/subtitle-overlap-fixer.go
Little tool to fix overlapping subtitles (especially the ones extracted from english auto-subtitles of youtube, vtt files that you would convert to srt with ffmpeg)
package main
import (
"time"
"regexp"
"bufio"
"strconv"
"fmt"
"os"
"errors"
## HOW TO DO DADGUM ENV VARS FOR UI AND SHELL APPS ON macOS:
# 1. If you want to OVERRIDE existing paths, prepend to existing path in ~/.zprofile
# 2. If you want to ADD NEW paths that do not need to override system paths, append to existing path in ~/.zshenv
#Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
export FIREFOX_BIN=/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin
alias emacs="emacsclient -nw"
alias emc="emacsclient -n"
;;; .doom.d/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here
;;Use custom font
(setq doom-font (font-spec :family "Droid Sans Mono" :size 17))
;; macOS specific config
;;; .doom.d/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here
;;Use custom font
(setq doom-font (font-spec :family "Droid Sans Mono" :size 17))
;;Tighten which-key interval
(setq which-key-idle-delay 0.4)