From 979472385b89fa9aaa268360f658f85f2b3146c7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 30 Sep 2015 15:34:08 -0400 Subject: [PATCH] Move yasnippet %-helper defuns into emacs-snippets repo --- core/lib/defuns-yasnippet.el | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/core/lib/defuns-yasnippet.el b/core/lib/defuns-yasnippet.el index 7d7adf056..5379a1d88 100644 --- a/core/lib/defuns-yasnippet.el +++ b/core/lib/defuns-yasnippet.el @@ -82,28 +82,6 @@ normal mode if there are no fields." (delete-region sof (point))))) ;; Snippet helpers ;;;;;;;;;;;;;;;;;;;;; -;;;###autoload -(defun !%! () - "Snippet function. Shorthand defun to surround text with newlines if more -than one line." - (when % - (if (> (length (s-lines %)) 1) - (concat "\n" % "\n") - (s-trim %)))) - -;;;###autoload -(defun !% () - "Snippet function. Shorthand defun for snippets: prepends a newline to - `yas-selected-text' IF it contains more than one line." - (when % - (if (> (length (s-lines %)) 1) - (concat "\n" %) - (s-trim %)))) -;;;###autoload -(defun %1 () - "Trim selection; do no further processing." - (s-trim %)) - ;;;###autoload (autoload 'narf:yas-snippets "defuns-yasnippet" nil t) (evil-define-command narf:yas-snippets (&optional bang) (interactive "")