dotfiles/emacs/snippets/fundamental-mode/box

9 lines
259 B
Plaintext
Raw Normal View History

# -*- mode: snippet -*-
# name: Create a box
# key: box
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# --
┌${1:$(make-string (+ 2 (string-width yas-text)) ?\-)}┐
| $1 |
└${1:$(make-string (+ 2 (string-width yas-text)) ?\-)}┘