From 6a3efe35bf8b20b0900dbbf7747b8b8d0d19bd04 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 6 Sep 2016 07:39:30 +0200 Subject: Upgrade ports --- .emacs.d/snippets/prog-mode/commentline | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .emacs.d/snippets/prog-mode/commentline (limited to '.emacs.d/snippets/prog-mode/commentline') diff --git a/.emacs.d/snippets/prog-mode/commentline b/.emacs.d/snippets/prog-mode/commentline new file mode 100644 index 0000000..0b0edff --- /dev/null +++ b/.emacs.d/snippets/prog-mode/commentline @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# contributor: sh-ow +# name: commentline +# key: col +# -- +${1:$(yas-trimmed-comment-start)} ${1:comment} ${1:$(let* ((str "") + (curr (current-column)) + (start (yas-trimmed-comment-start)) + (lastcom (substring start -1)) + (end (yas-trimmed-comment-end))) + (while (< (length str) (- 79 (+ curr (length end)))) + (setq str (concat str lastcom))) + (concat str end))}$0 \ No newline at end of file -- cgit v1.3