From 4e57fb98342dd3cce7faa38e25c8ec2014a21865 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 22 Apr 2024 15:25:08 +0200 Subject: Update markdown-mode, yasnippet, yasnippet-snippets and add snippets/markdown-mode --- .emacs.d/snippets/prog-mode/.yas-setup.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.emacs.d/snippets/prog-mode/.yas-setup.el') diff --git a/.emacs.d/snippets/prog-mode/.yas-setup.el b/.emacs.d/snippets/prog-mode/.yas-setup.el index 486ae47..7d6127d 100644 --- a/.emacs.d/snippets/prog-mode/.yas-setup.el +++ b/.emacs.d/snippets/prog-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) ;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -29,8 +30,9 @@ (yas-s-trim comment-start)) (defun yas-trimmed-comment-end () - "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty. -Otherwise the reversed output of function `yas-trimmed-comment-start' is returned." + "This function returns `comment-end' trimmed by whitespaces if +`comment-end' is not empty. Otherwise the reversed output of +function `yas-trimmed-comment-start' is returned." (if (eq (length comment-end) 0) (yas-string-reverse (yas-trimmed-comment-start)) (yas-s-trim comment-end))) -- cgit v1.3