* creating alias-link to file
@ 2006-09-04 9:52 Johannes Quint
2006-09-04 11:08 ` Peter Dyballa
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Quint @ 2006-09-04 9:52 UTC (permalink / raw)
is it possible to open a file with find-file-at-point
using an alias?
i.e. i want to open the file ~/a/b/c/d/e/f/g/h.txt" but i want to
open it by
going to the name "xy".
thanks for hints.
j.q.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: creating alias-link to file
2006-09-04 9:52 Johannes Quint
@ 2006-09-04 11:08 ` Peter Dyballa
0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2006-09-04 11:08 UTC (permalink / raw)
Cc: gnu-emacs-help
Am 04.09.2006 um 11:52 schrieb Johannes Quint:
> is it possible to open a file with find-file-at-point
> using an alias?
Yes. Open two dired buffers, one with target directory (includes the
file the symbolic link will point to), one with the source directory
(will contain the sym-link). Create the link with S. (Using H you
will create a hard link, which will make it impossible to decide
which is source and which is target, which needs that both are on the
same partition/volume/slice/file system.)
--
Mit friedvollen Grüßen
Pete
"What is this talk of 'release?' Klingons do not make software
'releases.' Our software 'escapes,' leaving a bloody trail of
designers and quality assurance people in its wake."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: creating alias-link to file
[not found] <mailman.6251.1157366620.9609.help-gnu-emacs@gnu.org>
@ 2006-09-04 11:10 ` Hadron Quark
2006-09-22 23:03 ` Peter Lee
1 sibling, 0 replies; 4+ messages in thread
From: Hadron Quark @ 2006-09-04 11:10 UTC (permalink / raw)
Johannes Quint <johannes.quint@web.de> writes:
> is it possible to open a file with find-file-at-point
> using an alias?
> i.e. i want to open the file ~/a/b/c/d/e/f/g/h.txt" but i want to open
> it by
> going to the name "xy".
> thanks for hints.
> j.q.
>
Dont know about aliases, but bookmarks might be useful to you.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: creating alias-link to file
[not found] <mailman.6251.1157366620.9609.help-gnu-emacs@gnu.org>
2006-09-04 11:10 ` creating alias-link to file Hadron Quark
@ 2006-09-22 23:03 ` Peter Lee
1 sibling, 0 replies; 4+ messages in thread
From: Peter Lee @ 2006-09-22 23:03 UTC (permalink / raw)
>>>> Johannes Quint writes:
> is it possible to open a file with find-file-at-point
> using an alias?
> i.e. i want to open the file ~/a/b/c/d/e/f/g/h.txt" but i want to open it by
> going to the name "xy".
You could use abbrev's.
(define-abbrev global-abbrev-table "xy" "~/a/b/c/d/e/f/g/h.txt")
then:
C-x C-f xy C-x a e RET
or
C-x C-f xy C-x ' RET
I usually use these for common dirs I visit with long paths.
You could probably make it some local-abbrev-table ... specific to the
minibuffer as well... I've never tried that as I don't have that many.
Another option is to use environment vars from find-file.
(setenv "xy" "~/a/b/c/d/e/f/g/h.txt")
C-x C-f $xy RET
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-22 23:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6251.1157366620.9609.help-gnu-emacs@gnu.org>
2006-09-04 11:10 ` creating alias-link to file Hadron Quark
2006-09-22 23:03 ` Peter Lee
2006-09-04 9:52 Johannes Quint
2006-09-04 11:08 ` Peter Dyballa
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.