소스 검색

Fix column length

master
10sr 7 년 전
부모
커밋
7398aebbb7
로그인 계정: 10sr GPG 키 ID: 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)))))



불러오는 중...
취소
저장