title: Emacs and symbolic links
body: <p>Say I have a symbolic link at <code>/home/.bashrc</code> that points to an actual .bashrc file somewhere else: <code>/some/other/path/.bashrc</code> that is under a git repository.</p>
  
  <p>If I open <code>/home/.bashrc</code> in Emacs, it prompts me with: </p>
  
  <pre><code>Symbolic link to Git-controlled source file; follow link? (y or n)
  </code></pre>
  
  <p>I usually type <code>y</code>, since I want to edit the actual file. However, later on, if I do <code>buffer-file-name</code> Emacs returns <code>/some/other/path/.bashrc</code>, and not <code>/home/.bashrc</code>). </p>
  
  <p>I would like Emacs to <strong>remember</strong> that the way I accessed this file was through a symbolic link. </p>
  
  <p>In other words, I would like my symbolic links to be transparent to Emacs. Part of the reason is because I have several Emacs macros that depend on the path of the current file, and these macros think that I am working with a file located in <code>/some/other/path</code> and not in <code>/home/</code>.</p>
  
  <p>How can I do this?</p>