浏览代码

add func sed-in-place

pull/1/head
10sr 11 年前
父节点
当前提交
bc59be820d
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      emacs.el

+ 11
- 0
emacs.el 查看文件

@@ -1871,6 +1871,17 @@ when SEC is nil, stop auto save if enabled."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; misc funcs

(defvar sed-in-place-history nil
"History of `sed-in-place'")

(defun sed-in-place (command)
"sed in place"a
(interactive (list (read-shell-command "sed in place: "
"sed --in-place=.bak -e "
'sed-in-place-history)))
(shell-command command
"*sed in place*"))

(defun dir-show (&optional dir)
(interactive)
(let ((bf (get-buffer-create "*dir show*"))


正在加载...
取消
保存