Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
655 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # contributor: sh-ow <sh-ow@users.noreply.github.com>
  3. # name: commentline
  4. # key: col
  5. # --
  6. `(yas-trimmed-comment-start)` ${1:comment} ${1:$(let* ((start (yas-trimmed-comment-start))
  7. (lastcom (aref start (1- (length start))))
  8. (end (yas-trimmed-comment-end))
  9. (endpadlen (- 79 (+ (current-column) (length end)))))
  10. (concat (make-string (max endpadlen 0) lastcom)
  11. end))}$0