help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yasnippet to expand abbreviation in dired/fileopen command?


From: Andrea Crotti
Subject: Re: yasnippet to expand abbreviation in dired/fileopen command?
Date: Thu, 10 May 2012 15:10:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

David Belohrad <david@belohrad.ch> writes:

> Hi there,
> any help would be appreciated:
>
> I want to open a file on the remote machine. I've setup tramp to use
> abbrev to expand an abbreviation to full path, e.g.:
>
> xhs -> //ssh:xxx@xxxx#1222:/mnt/mp3/
>
> As I'm using already yasnippet for something else, using abbrev for this
> seems to be just a duplication of what yasnippet does in more generic
> way. 
>
> However, as yasnippet is using set of directories to identify major mode
> and select appropriate snippet 'set', I'm not sure into what directory I
> should put my snippets so they get expanded only when I have to specify
> directory or file....
>
>
> any comments?
>
> thanks
> d.
>

I've never thought about this, but in general I think
1. this duplication is not the end of the world
2. bookmark (or bookmark+) are a better way to solve this problem.

What I do is normally just connect to a machine, open dired or the
desired file and C-x r m to store the bookmark..

-- 
GNU Emacs 24.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.1)
 of 2012-04-29 on dell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]