summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/prog-mode
diff options
context:
space:
mode:
authorSimeon Simeonov2024-04-22 15:25:08 +0200
committerSimeon Simeonov2024-04-22 15:25:08 +0200
commit4e57fb98342dd3cce7faa38e25c8ec2014a21865 (patch)
tree96626016693999f74d81dae4488b8ccca1e74181 /.emacs.d/snippets/prog-mode
parent49d331d0b958a4e10b841bc34ebc020fe9db86ed (diff)
Update markdown-mode, yasnippet, yasnippet-snippets and add snippets/markdown-mode
Diffstat (limited to '.emacs.d/snippets/prog-mode')
-rw-r--r--.emacs.d/snippets/prog-mode/.yas-setup.el6
1 files changed, 4 insertions, 2 deletions
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 @@
1;;; -*- lexical-binding: t -*-
1(require 'yasnippet) 2(require 'yasnippet)
2 3
3;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -29,8 +30,9 @@
29 (yas-s-trim comment-start)) 30 (yas-s-trim comment-start))
30 31
31(defun yas-trimmed-comment-end () 32(defun yas-trimmed-comment-end ()
32 "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty. 33 "This function returns `comment-end' trimmed by whitespaces if
33Otherwise the reversed output of function `yas-trimmed-comment-start' is returned." 34`comment-end' is not empty. Otherwise the reversed output of
35function `yas-trimmed-comment-start' is returned."
34 (if (eq (length comment-end) 0) 36 (if (eq (length comment-end) 0)
35 (yas-string-reverse (yas-trimmed-comment-start)) 37 (yas-string-reverse (yas-trimmed-comment-start))
36 (yas-s-trim comment-end))) 38 (yas-s-trim comment-end)))