Skip to content

Instantly share code, notes, and snippets.

@nevsan
Created November 10, 2013 08:09
Show Gist options
  • Save nevsan/7395276 to your computer and use it in GitHub Desktop.
Save nevsan/7395276 to your computer and use it in GitHub Desktop.
Search for 'verilog-library-files' relative to the current TRAMP path.
9560c9560,9569
< verilog-library-files)) ; finally, any libraries
---
> verilog-library-files ; finally, any libraries
> (let ((tramp-host ; also relative to current TRAMP path
> (ignore-errors
> (tramp-file-name-host
> (tramp-dissect-file-name buffer-file-name)))))
> (if tramp-host
> (mapcar (lambda (fname)
> (format "/scpc:%s:%s" tramp-host
> fname))
> verilog-library-files)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment