Use proper setter function
Only use "file-truename" on local files

For remote files, use "(file-remote-p FILENAME 'localname)"
instead. This avoids hanging emacs if the remote server is currently
inaccessible. This means that symbolic links are not resolved on remote
file names.
Revert "Exclude remote files from global hardhat mode"

This should be unnecessary after b76f873.

This reverts commit df1e42dbe787ad5d36e169bf830af11e30609481.
Merge pull request #9 from DarwinAwardWinner/master

Handle remote files without hanging