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.

Revisions

  1. hghwng created this gist Jul 23, 2017.
    23 changes: 23 additions & 0 deletions mail
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # -*- 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")`