Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate aliases in emacs?
    text
    copied!<p>I have a copy of emacs that I use on a couple of different (windows) computers from a thumb drive, and I am wondering if it is possible to create something that is sort of the equivalent of a bash alias or symlink within emacs? Something that I could use within find-file is the main thing that i'm looking for, so for example: <code>C-f &lt;some link&gt;</code> would take me somewhere. Currently I have to add a new defun every time i get to a new computer, which is just kind of a pain and I would <em>swear</em> i've seen this somewhere, but months of googling have turned up nothing.</p> <p>What i've got right now is something like:</p> <pre><code>(defun go-awesome () "Find my way to my work home" (interactive) (find-file "c:/cygwin/home/awesome")) </code></pre> <p>But that feels increadibly overdone and hacky for just visiting a fairly hacky for just visiting a file that i visit semi-regularly. And it requires a lot of effort to set up a new file.</p> <p>The biggest problem with it though, in my opinion is that it doesn't fit in my workflow. When i want to visit a file i always do <code>C-x C-f</code>, and if i realize that "hey i'm at work" i then have to <code>C-g M-x go-awesome</code>. Perhaps it would be more clear if i said that i wanted to be able to do something that is the equivalent of an <code>ln -s /some/awesome/dir</code> but internal to emacs, instead of built into the OS, so that <code>C-x C-f ~/awesome/some/sub/dir</code> would work on windows or anywhere else.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload