c1e381eecc
TL;DR: - prefer WPCARRO env-var to BRIEFCASE - remove repository URLs from Emacs libraries - prefer tvl-depot-path where possible - reduce the scope of constants.el - prune (some not all) stale CI configuration Change-Id: I21e9130402502ec6fa2fc4b46753c890069be62d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4545 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com>
28 lines
893 B
EmacsLisp
28 lines
893 B
EmacsLisp
;;; >.el --- Small utility functions -*- lexical-binding: t -*-
|
|
|
|
;; Author: William Carroll <wpcarro@gmail.com>
|
|
;; Version: 0.0.1
|
|
;; Package-Requires: ((emacs "24"))
|
|
|
|
;;; Commentary:
|
|
;; Originally I stored the `>>` macro in macros.el, but after setting up linting
|
|
;; for my Elisp in CI, `>>` failed because it didn't have the `macros-`
|
|
;; namespace. I created this module to establish a `>-` namespace under which I
|
|
;; can store some utilities that would be best kept without a cumbersome
|
|
;; namespace.
|
|
|
|
;;; Code:
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Library
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(defmacro >-> (&rest forms)
|
|
"Compose a new, point-free function by composing FORMS together."
|
|
(let ((sym (gensym)))
|
|
`(lambda (,sym)
|
|
(->> ,sym ,@forms))))
|
|
|
|
|
|
(provide '>)
|
|
;;; >.el ends here
|