All actions fontified.
This commit is contained in:
parent
4ab9bab7c5
commit
880b98d60e
1 changed files with 8 additions and 4 deletions
|
@ -309,11 +309,15 @@ put it in magit-key-mode-key-maps for fast lookup."
|
||||||
|
|
||||||
(defun magit-key-mode-draw-actions (actions)
|
(defun magit-key-mode-draw-actions (actions)
|
||||||
(when actions
|
(when actions
|
||||||
(let* ((action-strs (mapcar (lambda (a)
|
(let* ((action-strs (mapcar
|
||||||
(format " %s: %s" (car a) (nth 1 a)))
|
(lambda (a)
|
||||||
actions))
|
(format
|
||||||
|
" %s: %s"
|
||||||
|
(propertize (car a) 'face 'font-lock-builtin-face)
|
||||||
|
(nth 1 a)))
|
||||||
|
actions))
|
||||||
(longest-act (apply 'max (mapcar 'length action-strs)))
|
(longest-act (apply 'max (mapcar 'length action-strs)))
|
||||||
(max-size 70))
|
(max-size 60))
|
||||||
(magit-key-mode-draw-header "Actions\n")
|
(magit-key-mode-draw-header "Actions\n")
|
||||||
(dolist (str action-strs)
|
(dolist (str action-strs)
|
||||||
(let ((padding (make-string (- (+ longest-act 5) (length str)) ? )))
|
(let ((padding (make-string (- (+ longest-act 5) (length str)) ? )))
|
||||||
|
|
Loading…
Reference in a new issue