mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-17 02:44:17 +00:00
Removed final newline from snippet files.
This commit is contained in:
@@ -2,5 +2,4 @@
|
||||
#name: autoload
|
||||
#key: autoload
|
||||
# --
|
||||
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
||||
|
||||
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
||||
@@ -3,5 +3,4 @@
|
||||
#key: bounds-of-thing-at-point
|
||||
#key: botap
|
||||
# --
|
||||
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
|
||||
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
@@ -3,4 +3,4 @@
|
||||
#key: buffer-substring-no-properties
|
||||
#key: bsnp
|
||||
# --
|
||||
(buffer-substring-no-properties START$0 END)
|
||||
(buffer-substring-no-properties START$0 END)
|
||||
@@ -3,4 +3,4 @@
|
||||
#key: buffer-substring
|
||||
#key: bs
|
||||
# --
|
||||
(buffer-substring START$0 END)
|
||||
(buffer-substring START$0 END)
|
||||
@@ -2,4 +2,4 @@
|
||||
#name: format
|
||||
#key: format
|
||||
# --
|
||||
(format "$0" &optional OBJECTS)
|
||||
(format "$0" &optional OBJECTS)
|
||||
@@ -2,4 +2,4 @@
|
||||
#name: format
|
||||
#key: format
|
||||
# --
|
||||
(format "$0" &optional OBJECTS)
|
||||
(format "$0" &optional OBJECTS)
|
||||
@@ -3,4 +3,4 @@
|
||||
#key: replace-regexp-in-string
|
||||
#key: rris
|
||||
# --
|
||||
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
|
||||
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
|
||||
@@ -2,4 +2,4 @@
|
||||
#name: substring
|
||||
#key: substring
|
||||
# --
|
||||
(substring STRING$0 FROM &optional TO)
|
||||
(substring STRING$0 FROM &optional TO)
|
||||
@@ -3,5 +3,4 @@
|
||||
#key: thing-at-point
|
||||
#key: tap
|
||||
# --
|
||||
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
|
||||
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
@@ -13,4 +13,4 @@
|
||||
(mapc 'myProcessFile (dired-get-marked-files))
|
||||
)
|
||||
|
||||
;; to use it, type M-x dired-myProcessFile
|
||||
;; to use it, type M-x dired-myProcessFile
|
||||
@@ -14,4 +14,4 @@
|
||||
;; ... do something here
|
||||
;; (write-file fpath) ;; write back to the file
|
||||
|
||||
(kill-buffer " myTemp")))
|
||||
(kill-buffer " myTemp")))
|
||||
@@ -14,4 +14,4 @@ This works on the current region."
|
||||
(goto-char (point-min))
|
||||
(while (search-forward ">" nil t) (replace-match ">" nil t))
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -1,4 +1,4 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: grab buffer substring
|
||||
# --
|
||||
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
|
||||
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
|
||||
@@ -1,4 +1,4 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: grab word under cursor
|
||||
# --
|
||||
(setq $0 (thing-at-point 'symbol))
|
||||
(setq $0 (thing-at-point 'symbol))
|
||||
@@ -3,4 +3,4 @@
|
||||
# --
|
||||
;; apply a function to all files in a dir
|
||||
(require 'find-lisp)
|
||||
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
|
||||
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
|
||||
@@ -24,4 +24,4 @@
|
||||
(insert "newText") ; insert your new text
|
||||
|
||||
)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user