From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Belohrad Newsgroups: gmane.emacs.help Subject: yasnippet to expand abbreviation in dired/fileopen command? Date: Thu, 10 May 2012 10:44:33 +0200 Message-ID: <87r4uspgr2.fsf@beesknees.cern.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1336639673 5394 80.91.229.3 (10 May 2012 08:47:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 08:47:53 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 10 10:47:52 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 1SSP2J-0005CK-6o for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2012 10:47:47 +0200 Original-Received: from localhost ([::1]:44068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSP2I-00054V-BL for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2012 04:47:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSP2A-00054B-L6 for help-gnu-emacs@gnu.org; Thu, 10 May 2012 04:47:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSP23-0004pZ-RV for help-gnu-emacs@gnu.org; Thu, 10 May 2012 04:47:38 -0400 Original-Received: from static-212-101-19-163.adsl.solnet.ch ([212.101.19.163]:59876 helo=server.belohrad.ch) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSP23-0004pJ-K2 for help-gnu-emacs@gnu.org; Thu, 10 May 2012 04:47:31 -0400 Original-Received: from beesknees.cern.ch.belohrad.ch (beesknees.cern.ch [137.138.197.99]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by server.belohrad.ch (Postfix) with ESMTPSA id AAE6F25C7A; Thu, 10 May 2012 10:52:12 +0200 (CEST) User-Agent: Notmuch/0.13~rc1+1~gece5275 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.101.19.163 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:84787 Archived-At: 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.