Skip to content

Instantly share code, notes, and snippets.

Eric Kaschalk ekaschalk

Block or report user

Report or block ekaschalk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pytest_macros.hy
(defmacro deffixture [fn-name docstring params &rest body]
"Pytest parametrize reader."
`(with-decorator
(pytest.fixture :params ~params :scope "module")
(defn ~fn-name [request]
~docstring
(setv it request.param)
~@body)))
(defmacro with-fixture [fixture fn-name args &rest body]
@ekaschalk
ekaschalk / esh-custom.el
Created Jun 24, 2017
Customizing your emacs shell.
View esh-custom.el
(require 'dash)
(require 's)
(defmacro with-face (STR &rest PROPS)
"Return STR propertized with PROPS."
`(propertize ,STR 'face (list ,@PROPS)))
(defmacro esh-section (NAME ICON FORM &rest PROPS)
"Build eshell section NAME with ICON prepended to evaled FORM with PROPS."
`(setq ,NAME
You can’t perform that action at this time.