Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
add diff face for tramp file
Browse files Browse the repository at this point in the history
  • Loading branch information
jixiuf committed Jul 20, 2016
1 parent 418298f commit 7ddd1d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions helm-dired-history.el
Expand Up @@ -83,8 +83,11 @@
(setq helm-dired-history-variable tmp-history)))
(setq helm-dired-history-variable
(delete-dups (delete (dired-current-directory) helm-dired-history-variable)))
(setq helm-dired-history-variable
(append (list (dired-current-directory)) helm-dired-history-variable)))
(let ((dir (dired-current-directory)))
(when (file-remote-p dir)
(setq dir (propertize dir 'face 'font-lock-warning-face))
(setq helm-dired-history-variable
(append (list dir) helm-dired-history-variable)))))

;;when you open dired buffer ,update `helm-dired-history-variable'.
(add-hook 'dired-after-readin-hook 'helm-dired-history-update)
Expand Down

0 comments on commit 7ddd1d1

Please sign in to comment.