Wang ChunYe

Hi, my name is Wang Chun Ye (王纯业). here is list of my packages

(remove-if-not  ($ string-match "ba") '("foo" "bar" "baz"))
;; get the string whose length is larger than 10
(remove-if-not (\. ($ (wlflip >) 10) length) '("hello" "very long string"))
(defun wcy-backup-buffer()
  (interactive)
  (if (buffer-file-name)
    (write-region 1 (1+ (buffer-size)) 
                  (concat (file-name-sans-extension (buffer-file-name))
			  (format-time-string "_%Y_%m_%d.%H.%M.%S")
			  "."
			  (file-name-extension (buffer-file-name))))
    (message "buffer has no file associate.")))

Welcome to the wiki! – DrewAdams


CategoryHomepage