10sr 7 лет назад
Родитель
Сommit
7398aebbb7
Подписано: 10sr Идентификатор GPG ключа: 7BEC428194130EB2
1 измененных файлов: 13 добавлений и 3 удалений
  1. +13
    -3
      emacs.el

+ 13
- 3
emacs.el Просмотреть файл

@@ -2162,6 +2162,7 @@ Return that buffer."
(add-hook 'dired-mode-hook
'recently-dired-mode-hook)

;;;;;;;;;;;;;;;;
;; recently-show

(defvar recently-show-window-height 10
@@ -2230,9 +2231,6 @@ use for the buffer. It defaults to \"*recetf-show*\"."
(when (get-buffer bname)
(kill-buffer bname))
(with-current-buffer (get-buffer-create bname)
(setq tabulated-list-format
`[("Name" 30 t)
("Full Path" 0 t)])
;; (setq tabulated-list-sort-key (cons "Name" nil))
(setq tabulated-list-entries
(mapcar (lambda (f)
@@ -2244,6 +2242,18 @@ use for the buffer. It defaults to \"*recetf-show*\"."
;; list
recently-list
))
(let ((max
(apply 'max
(mapcar (lambda (l)
(length (elt (cadr l) 0)))
tabulated-list-entries))))
(setq tabulated-list-format
`[("Name"
,(min max
30)
t)
("Full Path" 0 t)])
)
(recently-show-tabulated-mode)
(current-buffer)))))



Загрузка…
Отмена
Сохранить