From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: org-src-fontify-natively makes things very, very slow Date: Mon, 21 Mar 2011 07:57:07 -0600 Message-ID: <87tyewk1im.fsf@gmail.com> References: <87ipvhiou8.fsf@ucl.ac.uk> <804o71triy.fsf@somewhere.org> <87bp18su1a.fsf@ucl.ac.uk> <80fwqjqxfj.fsf@somewhere.org> <87oc56q26l.fsf@ucl.ac.uk> <87ipvdo9zs.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58696 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1fp1-00047A-Ix for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 10:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1foz-0003Ui-4i for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 10:11:02 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:46005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1foy-0003Ua-VK for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 10:11:01 -0400 Received: by iyf13 with SMTP id 13so8126699iyf.0 for ; Mon, 21 Mar 2011 07:11:00 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Le Wang Cc: emacs-orgmode@gnu.org Le Wang writes: > On Mon, Mar 21, 2011 at 3:41 AM, Eric S Fraga wrote: >> Le Wang writes: >> >>> Why did you give up on yasnippet? >> >> Confusion amongst the key bindings, between org, yasnippet and the >> autocompletion tools I have been trying. =C2=A0I want to be able to use = TAB >> for completion. >> >> I may come back to yasnippet in due course so it's nothing to do with >> yasnippet per se. > I've been using the following yasnippet/org configuration for a long while now binding yas/expand to TAB. #+begin_src emacs-lisp (defun yas/org-very-safe-expand () (let ((yas/fallback-behavior 'return-nil)) (yas/expand))) (add-hook 'org-mode-hook (lambda () ;... ;; yasnippet (using the new org-cycle hooks) (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand) (define-key yas/keymap [tab] 'yas/next-field) )) #+end_src Best -- Eric > > I too had this issue of expansion confusion, especially when I > installed the premade yasnippet packs. > > I solved it by adding moving yasnippet off the [tab] key, and adding > it to hippie-expand, which I map to (M-/): > > (setq yas/trigger-key nil) > (add-to-list 'hippie-expand-try-functions-list 'yas/hippie-try-expand) > > >> -- >> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 >> : using Org-mode version 7.5 (release_7.5.90.g1fb3.dirty) >>