Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / xterm-256color.svg
Last active Jun 21, 2021
Xterm 256color mode color chart, organised into sections.
View xterm-256color.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View NSScreen+currentScreenForMouseLocation.swift
//
// NSScreen+currentScreenForMouseLocation.swift
// CutBox
//
import Cocoa
extension NSScreen {
static func currentScreenForMouseLocation() -> NSScreen? {
let mouseLocation = NSEvent.mouseLocation
@jasonm23
jasonm23 / commandprompthere.reg
Created May 23, 2012
Command prompt here...
View commandprompthere.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd]
@="Open Command Prompt Here"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd\command]
@="cmd.exe /k pushd %L"
@jasonm23
jasonm23 / emacs-cocoa-mac-keys.md
Created Mar 30, 2012
Mac specific Cocoa Emacs key bindings
View emacs-cocoa-mac-keys.md

Emacs Cocoa Mac/OS X specific key bindings

  • + & kill-this-buffer
  • + ' next-multiframe-window
  • + , customize
  • + - center-line
  • + ; ispell-next
  • + shift + : ispell
  • + shift + ? info
  • + shift + C popup-color-panel
@jasonm23
jasonm23 / template-theme.el
Created Jan 14, 2013
A very basic Emacs 24 deftheme template, just to show the main blocks to use.
View template-theme.el
;;; Filename: name-theme.el
(deftheme name
"DOCSTRING")
;; Not a bad idea to define a palette...
(let (
(color-1 "#ffffff")
(color-2 "#ff0000")
(color-3 "#00ff00")
(color-4 "#0000ff"))
View Handy one-liners for SED.markdown
@jasonm23
jasonm23 / mac-frame-adjust.el
Last active Feb 14, 2021
This is something I use to move my emacs frame around (I generally only have one open, albeit with 10-100 buffers open.) the `global-set-key` bindings at the bottom will be clearer documentation than any convoluted explanation. That said, it'll move / size the frame around the largest display, here's the shonky bit, the assumption is the largest…
View mac-frame-adjust.el
;; mac-frame-adjust.el - emacs-mac-port frame-adjust tool.
;; lots of preset frame size/positions in a convenient library.
;; Author: Jason Milkins
;; Requires: dash.el, s.el, cl-lib.el
;; Emacs Mac-Port, frame adjuster - for my personal use only.
;; because it's not very good ;)
;; No warranty or support are offered.
;; However, it's licenced under the MIT Licence
(require 'cl-lib)
View FakeKey.swift
//
// FakeKeyEvents.swift
// CutBox
//
// Created by Jason Milkins on 26/3/18.
// Copyright © 2019-2020 ocodo. All rights reserved.
//
import Foundation
import Carbon
@jasonm23
jasonm23 / ibm-box-drawing-hydra.el
Last active Dec 6, 2020
Draw DOS style boxes in Emacs with a hydra
View ibm-box-drawing-hydra.el
;;; ibm-box-drawing-hydra --- draw DOS style boxes with a hydra
;;; Commentary:
;; Use M-x load-library ibm-box-drawing-hydra (after placing this file in the Emacs lisp load-path)
;; Draw box with IBM single line box characters. - activate with C-x d
;;
;; Press Esc to exit.
;;
;; Essentially treats the left hand on a QWERTY layout
@jasonm23
jasonm23 / README.md
Last active Sep 10, 2020 — forked from hamann/gist:39371c46806e14ab3853
Elixir mix oh-my-zsh completion plugin
View README.md

Elixir Mix Oh-My-Zsh plugin

Copy the folder ./elixir_mix/ to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list. e.g.

Example:

plugins=(
  autojump
  git