about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-23T13·49+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-23T13·49+0000
commitdf112d34b6880c388a93f37f98b09b5f2b360b1e (patch)
tree72b3e0dd4ff57c9015e471c89139d96b637c998e
parent1a2ae5499eee1ea3a53ff01155f67d80d40897eb (diff)
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.
-rw-r--r--configs/shared/.emacs.d/snippets/lisp-mode/typed-function8
1 files changed, 8 insertions, 0 deletions
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 000000000000..a3c236821e06
--- /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