Skip to content

Instantly share code, notes, and snippets.

@hghwng
Created July 23, 2017 10:22
Show Gist options
  • Save hghwng/ccaefd42e1a218778a2d1a29399e86b1 to your computer and use it in GitHub Desktop.
Save hghwng/ccaefd42e1a218778a2d1a29399e86b1 to your computer and use it in GitHub Desktop.
中文邮件的 yasnippet 模板
# -*- mode: snippet -*-
#name : mail
#key : mail
#author : Hugh Wang
# --
${1:尊敬的 XXX}
您好。
$0
`
(let
((month (nth 4 (decode-time (current-time)))))
(let
((season-index (/ (% (+ month 10) 12) 4)))
(nth season-index (quote ("春安" "夏安" "秋安" "冬安")))
)
)
`
Hugh Wang
`(format-time-string "%Y-%m-%d")`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment