all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: David Belohrad <david@belohrad.ch>
Cc: help-gnu-emacs@gnu.org
Subject: Re: yasnippet to expand abbreviation in dired/fileopen command?
Date: Thu, 10 May 2012 15:10:20 +0100	[thread overview]
Message-ID: <87ehqs160j.fsf@gmail.com> (raw)
In-Reply-To: <87r4uspgr2.fsf@beesknees.cern.ch> (David Belohrad's message of "Thu, 10 May 2012 10:44:33 +0200")

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	other threads:[~2012-05-10 14:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10  8:44 yasnippet to expand abbreviation in dired/fileopen command? David Belohrad
2012-05-10 14:10 ` Andrea Crotti [this message]
2012-05-10 14:29 ` XeCycle
2012-05-10 16:04   ` Drew Adams
2012-05-11  9:31     ` David Belohrad
     [not found] <mailman.889.1336639663.855.help-gnu-emacs@gnu.org>
2012-05-10 11:31 ` Xah Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehqs160j.fsf@gmail.com \
    --to=andrea.crotti.0@gmail.com \
    --cc=david@belohrad.ch \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.