diff options
Diffstat (limited to '.emacs.d/snippets/prog-mode/.yas-setup.el')
| -rw-r--r-- | .emacs.d/snippets/prog-mode/.yas-setup.el | 6 |
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 |
| 33 | Otherwise the reversed output of function `yas-trimmed-comment-start' is returned." | 34 | `comment-end' is not empty. Otherwise the reversed output of |
| 35 | function `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))) |
