From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: yasnippet to expand abbreviation in dired/fileopen command? Date: Thu, 10 May 2012 15:10:20 +0100 Message-ID: <87ehqs160j.fsf@gmail.com> References: <87r4uspgr2.fsf@beesknees.cern.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336659069 7353 80.91.229.3 (10 May 2012 14:11:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 14:11:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: David Belohrad Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 10 16:11:07 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSU5D-0001CT-2l for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2012 16:11:07 +0200 Original-Received: from localhost ([::1]:44896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSU5C-000636-B2 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2012 10:11:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSU4y-00061d-9I for help-gnu-emacs@gnu.org; Thu, 10 May 2012 10:11:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSU4t-0001yc-AK for help-gnu-emacs@gnu.org; Thu, 10 May 2012 10:10:51 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:33325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSU4t-0001xS-0N for help-gnu-emacs@gnu.org; Thu, 10 May 2012 10:10:47 -0400 Original-Received: by wibhm14 with SMTP id hm14so124641wib.12 for ; Thu, 10 May 2012 07:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=sQMUNz4XEg0b57kQ+kbLiU8w8BISw3n5d1iXZUcLW/k=; b=vYC/GP0QJjDmlXG7LGD7cwcnSq9Z4K0J/s4drsHkgyVA5IVS1fTbGuw7GT7leZYpwV DmVznl6oQ2WabtVW4pW6QZdwbEStbZXeF6jH+z6m0JgPb7nslOtGmqZo2v7Knlkkg2l/ O2RtcZ+TM/yGIkFENU9pKgH8eeU1dG9BQKXpU+vm69NSSV7R8nRbZkl7KMJkZXWjN3Nh G7mJtjzuY3g8rpH5i4qn9YThySScTjOYE091hX3pSLgKeOwhIh0Kzmbov1PR0c25SBVa wCMqWlgZqSE34eq/FkQex2X/ege94THbvgPmq3qgKIiOxACrkc3DtFLS+sCn7X/hD0lZ M7UA== Original-Received: by 10.180.20.137 with SMTP id n9mr10927618wie.3.1336659045043; Thu, 10 May 2012 07:10:45 -0700 (PDT) Original-Received: from dell (host109-145-157-45.range109-145.btcentralplus.com. [109.145.157.45]) by mx.google.com with ESMTPS id j3sm5552294wiw.1.2012.05.10.07.10.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 May 2012 07:10:44 -0700 (PDT) In-Reply-To: <87r4uspgr2.fsf@beesknees.cern.ch> (David Belohrad's message of "Thu, 10 May 2012 10:44:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84792 Archived-At: David Belohrad 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