浏览代码

fix my-file-head

master
10sr 6 年前
父节点
当前提交
3f5e8d2545
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. +10
    -3
      emacs.el

+ 10
- 3
emacs.el 查看文件

@@ -1611,6 +1611,7 @@ This mode is a simplified version of `adoc-mode'."
(end 0)
(result '()))
(with-temp-buffer
(erase-buffer)
(while (<= (count-lines (point-min)
(point-max))
num)
@@ -1619,7 +1620,8 @@ This mode is a simplified version of `adoc-mode'."
nil
beg
end)
(setq beg end))
(goto-char (point-max))
(setq beg (+ beg size)))
(goto-char (point-min))
(while (< (length result) num)
(let ((start (point)))
@@ -1627,8 +1629,13 @@ This mode is a simplified version of `adoc-mode'."
(setq result
`(,@result ,(buffer-substring-no-properties start
(point))))))
result)))
;; (apply 'concat (my-file-head "./shrc" 10))
result
;; (buffer-substring-no-properties (point-min)
;; (progn
;; (forward-line num)
;; (point)))
)))
;; (apply 'concat (my-file-head "./shrc" 10)

(set-variable 'dumb-jump-prefer-searcher 'rg)



正在加载...
取消
保存