ソースを参照

fix bug

pull/1/head
10sr 12年前
コミット
d5194bc537
1個のファイルの変更4行の追加3行の削除
  1. +4
    -3
      emacs.el

+ 4
- 3
emacs.el ファイルの表示

@@ -1131,14 +1131,15 @@ if arg is omitted use value of `buffer-list'."

(defun my-dired-echo-file-head (&optional arg)
""
(interactive)
(interactive "P")
(let ((f (dired-get-filename)))
(message "%s"
(with-temp-buffer
(insert-file-contents f)
(buffer-substring-no-properties (point-min)
(progn (goto-line (or arg
10))
(progn (goto-line (if arg
(prefix-numeric-value arg)
10))
(point-at-eol)))))))

(defun my-dired-diff ()


読み込み中…
キャンセル
保存