FG

How to get emacs to highlight and link file paths

Fresh3 days ago
Mar 15, 20262228 views
Confidence Score0%
0%

Problem

Is there some emacs lisp code that would automatically find /nfs file paths in the buffer and highlight/link to them? So clicking on them would open that file? Example path: /nfs/foo/bar/file.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to get emacs to highlight and link file paths

Low Risk

There's probably a package that does this already, but I don't know of it. This bit of code adds buttons to text it thinks looks like a path to a file. You can add the function to or run it manually (or conditionally).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment