Skip to content

Instantly share code, notes, and snippets.

@astahlman
astahlman / magit-redefine-popup.el
Created July 4, 2018 22:40
Allow magit-popup menus to be redefined for iterative development.
(defmacro magit-redefine-popup (name doc &rest args)
"Define a popup command named NAME.
See magit-define-popup for a description of the parameters.
Unlike with magit-define-popup, changes to the popup definition
*will* be reflected upon re-evaluating this form. This is
convenient for iterative, interactive development of a
magit-popup menu."
(let* ((-name (symbol-name name))
@astahlman
astahlman / midje_example_mock.clj
Created May 7, 2015 01:45
Example of how def'ing doesn't play nice with Midje prerequisites.
(ns midje-example.mock
(:use midje.sweet))
(defn compute [comp-fn]
(comp-fn 2 3))
(unfinished mult)
;; At compile time...
;; #`midje-example.mock/bound-to-mult => #'midje-example.mock/mult
set number
set nocompatible
set wildmenu " Autocomplete menu?
set incsearch
set hlsearch
set encoding=utf-8