emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@manor-farm.org>
To: emacs-orgmode@gnu.org
Subject: Re: Re: Using yasnippet with org Mode
Date: Mon, 24 Nov 2008 09:34:25 +0000	[thread overview]
Message-ID: <492A7521.7040504@manor-farm.org> (raw)
In-Reply-To: <87od06dpx0.fsf@gmail.com>

> As for using yasnippets with tab, the following successfully binds tab
> to yas/expand when I start emacs with
> 
>   emacs -Q  (skips loading customization)
> 
> and then evaluate the following elisp to load yasnippets and org-mode
> 
> (load "~/emacs/elisp/util/yasnippet.el")
> (yas/initialize)
> (yas/load-directory "~/emacs/snippets")
> (add-to-list 'load-path "~/emacs/org")
> (require 'org)
> (add-hook 'org-mode-hook
> 	  (lambda ()
> 	    ;; yasnippet
> 	    (make-variable-buffer-local 'yas/trigger-key)
> 	    (setq yas/trigger-key [tab])
> 	    (define-key yas/keymap [tab] 'yas/next-field-group)))
> 
> This works for me using a fairly recent Emacs 23 from cvs.
> 

Thanks, I have tried that, but it didn't work for me:) I am using Emacs 
22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
  of 2008-09-05 on vernadsky, modified by Ubuntu. I have also tried 
binding Yasnippet to the F1 key, which isn't used by anything else. 
Whilst this works in text mode, it doesn't in org mode.

I'll ask in the Yasnippet list and see if they can suggest anything.

Ian.

  reply	other threads:[~2008-11-24 16:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23 19:23 Using yasnippet with org Mode Ian Barton
2008-11-23 21:11 ` Eric Schulte
2008-11-23 21:17   ` Tassilo Horn
2008-11-23 22:43     ` Eric Schulte
2008-11-24  9:34       ` Ian Barton [this message]
2008-11-24 23:51         ` Sebastian Rose
2008-11-24 14:46       ` Re: Using yasnippet with org Mode [Solved] Ian Barton
2008-11-24 15:38       ` Re: Using yasnippet with org Mode Eric Schulte
2008-11-24  0:45 ` Oliver Charles
2008-11-24 15:40   ` Eric Schulte
2008-11-25 15:44     ` Org mode snippets WAS: " Jonathan Arkell
2009-09-19  5:06 ` Using yasnippet with org Mode (C-i works TAB doesn't) Jeff Kowalczyk
2009-09-19 13:03   ` Nicolas Goaziou
2009-09-20 14:16     ` Eric Schulte
2009-09-21 17:18       ` Carsten Dominik
2009-09-22 15:52         ` Nicolas Goaziou
2009-09-22 19:22         ` Eric Schulte
2009-09-19 13:46   ` Eric Schulte

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=492A7521.7040504@manor-farm.org \
    --to=lists@manor-farm.org \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).