From df112d34b6880c388a93f37f98b09b5f2b360b1e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 23 Jan 2020 13:49:31 +0000 Subject: [PATCH] Support CL snippet for a typed function This depends on the `type` macro that's defined in my mono-repo. Perhaps another reason why my dotfiles needs to be merged into the mono-repo. --- configs/shared/.emacs.d/snippets/lisp-mode/typed-function | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 configs/shared/.emacs.d/snippets/lisp-mode/typed-function diff --git a/configs/shared/.emacs.d/snippets/lisp-mode/typed-function b/configs/shared/.emacs.d/snippets/lisp-mode/typed-function new file mode 100644 index 000000000..a3c236821 --- /dev/null +++ b/configs/shared/.emacs.d/snippets/lisp-mode/typed-function @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Typed function +# key: tfn +# -- +(type $1 ($3) $4) +(defun $1 ($2) + "$5" + $6) \ No newline at end of file