I'm working with files which are stored on a server. The structure on the server is:
//SBS/share/path/to/somewhere/2007/ //SBS/share/path/to/somewhere/2008/ //SBS/share/path/to/somewhere/2009/ ... //SBS/share/path/to/somewhere/2015/
In every years folder are the folders of the year, sometimes up to 1000.
Emacs 24.4 is running on a Win 7 machine. I used to map the folders of the years with letters (
X:), but I'm running out of letters now, 2015 is mapped to
If I wish to open a file of the year 2015, I do:
C-x C-f, delete whatever appears in the minibuffer, type
Z:, followed by the first letters of the folder. Without mapping the share to Z:, I'd have to type much more:
Emacs can't handle the Windows shortcuts
*.lnk. Windows can't map more shares than 26.
My general idea is that I could customise the command "find file" (C-x C-f) somehow.
What I'd like to have that I just type something like C-x C-f 2015 and get in the minibuffer the line:
Find file: //SBS/share/path/to/somewhere/2015/
with the cursor on the point after the last "/" and the usual auto-complition working, so that typing
foo will be completed to
foo.tex, if this exists (or a folder called foo).