mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(lib): doom-info symlink-path
The `if` clauses were swapped, such that a non-symlinked path was shown like, ~/.config/emacs/ -> ~/.config/emacs/ and a symlinked path was shown as, ~/.config/emacs/
This commit is contained in:
committed by
Henrik Lissner
parent
2645ed491b
commit
2bb7e8d018
@ -246,8 +246,9 @@ ready to be pasted in a bug report on github."
|
||||
(abbreviate-file-name path)))
|
||||
(defun symlink-path (file)
|
||||
(format "%s%s" (abbrev-path file)
|
||||
(if (file-symlink-p file) ""
|
||||
(concat " -> " (abbrev-path (file-truename file)))))))
|
||||
(if (file-symlink-p file)
|
||||
(concat " -> " (abbrev-path (file-truename file)))
|
||||
""))))
|
||||
`((generated . ,(format-time-string "%b %d, %Y %H:%M:%S"))
|
||||
(system . ,(delq
|
||||
nil (list (doom-system-distro-version)
|
||||
|
Reference in New Issue
Block a user