Add explicit "# key" directive to legacy snippet collection before deprecating filenames-as-triggers

This commit is contained in:
Joao Tavora
2011-10-31 12:32:34 +00:00
parent 1bc5993a44
commit f48317e7c5
402 changed files with 403 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#contributor: Xah Lee (XahLee.org)
#name: process marked files in dired
# key: x-dired
# --
;; idiom for processing a list of files in dired's marked files

View File

@@ -1,5 +1,6 @@
#contributor: Xah Lee (XahLee.org)
#name: a function that process a file
# key: x-file
# --
(defun doThisFile (fpath)
"Process the file at path FPATH ..."

View File

@@ -1,5 +1,6 @@
#contributor: Xah Lee (XahLee.org)
#name: read lines of a file
# key: x-file
# --
(defun read-lines (filePath)
"Return a list of lines in FILEPATH."

View File

@@ -1,5 +1,6 @@
#contributor: Xah Lee (XahLee.org)
#name: find and replace on region
# key: x-find-replace
# --
(defun replace-html-chars-region (start end)
"Replace “<” to “&lt;” and other chars in HTML.

View File

@@ -1,4 +1,5 @@
#contributor: Xah Lee (XahLee.org)
#name: grab buffer substring
# key: x-grabstring
# --
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))

View File

@@ -1,4 +1,5 @@
#contributor: Xah Lee (XahLee.org)
#name: grab word under cursor
# key: x-grabthing
# --
(setq $0 (thing-at-point 'symbol))

View File

@@ -1,5 +1,6 @@
#name: traversing a directory
#contributor: Xah Lee (XahLee.org)
# key: x-traverse_dir
# --
;; apply a function to all files in a dir
(require 'find-lisp)

View File

@@ -1,5 +1,6 @@
#contributor: Xah Lee (XahLee.org)
#name: Command that works on region or word
# key: x-word-or-region
# --
;; example of a command that works on current word or text selection
(defun down-case-word-or-region ()