I'm trying to extend Dired in emacs 26 windows to show junctions similarly to symlinks. I've got everything done except I can't get the junction file name part to be fontified.
Here's what I've done so far:
(defface dired-junction
'((t (:inherit font-lock-keyword-face)))
"Face used for junctions."
:group 'dired-faces
:version "22.1")
(defvar dired-junction-face 'dired-junction
"Face name used for junctions.")
(defvar dired-re-jun (concat dired-re-maybe-mark dired-re-inode-size "J[^:]"))
; ;; Symbolic links. pb: this needs to be part of dired-font-lock-keywords
; (list dired-re-sym
; '(".+" (dired-move-to-filename) nil (0 dired-symlink-face)))
;; Junctions.
(push (list dired-re-jun
'(".+" (dired-move-to-filename) nil (0 dired-junction-face)))
dired-font-lock-keywords)
I don't know where Dired uses the dired-font-lock-keywords
for fontification, so either I've left something out, or else I don't understand how to add to the dired-font-lock-keywords
variable properly.
Note the J
for junction is what I am using to replace the l
for symlink or d
for directory.