From: "Eric Schulte" <schulte.eric@gmail.com> To: Le Wang <l26wang@gmail.com> Cc: emacs-orgmode@gnu.org Subject: Re: Re: org-src-fontify-natively makes things very, very slow Date: Mon, 21 Mar 2011 07:57:07 -0600 [thread overview] Message-ID: <87tyewk1im.fsf@gmail.com> (raw) In-Reply-To: <AANLkTim86ZcbNE34GGNq5gug4xacXfv4YhzqvpF7DXnY@mail.gmail.com> Le Wang <l26wang@gmail.com> writes: > On Mon, Mar 21, 2011 at 3:41 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote: >> Le Wang <l26wang@gmail.com> writes: >> >>> Why did you give up on yasnippet? >> >> Confusion amongst the key bindings, between org, yasnippet and the >> autocompletion tools I have been trying. I 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) >>
next prev parent reply other threads:[~2011-03-21 14:11 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-17 13:59 Julian Burgos 2011-03-17 18:28 ` Eric S Fraga 2011-03-17 20:34 ` Sébastien Vauban 2011-03-18 0:11 ` Julian Burgos 2011-03-18 8:38 ` Eric S Fraga 2011-03-18 12:44 ` Julian Burgos 2011-03-19 9:20 ` Sébastien Vauban 2011-03-19 12:28 ` suvayu ali 2011-03-19 20:37 ` Eric S Fraga 2011-03-19 20:34 ` Eric S Fraga 2011-03-20 4:23 ` Le Wang 2011-03-20 19:41 ` Eric S Fraga 2011-03-21 2:37 ` Le Wang 2011-03-21 13:57 ` Eric Schulte [this message] 2011-03-21 17:06 ` Eric S Fraga 2011-03-21 22:23 ` Sébastien Vauban 2011-03-22 9:18 ` Ulf Stegemann 2011-03-29 14:49 ` Matt Lundin 2011-03-29 16:49 ` Eric S Fraga 2011-03-30 7:34 ` Sébastien Vauban 2011-04-28 20:59 ` Carsten Dominik 2011-04-28 23:32 ` Eric S Fraga 2011-04-30 19:45 ` Eric S Fraga 2011-05-01 13:37 ` Carsten Dominik 2011-03-29 14:12 ` Matt Lundin 2011-03-29 16:44 ` Eric S Fraga
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=87tyewk1im.fsf@gmail.com \ --to=schulte.eric@gmail.com \ --cc=emacs-orgmode@gnu.org \ --cc=l26wang@gmail.com \ --subject='Re: Re: org-src-fontify-natively makes things very, very slow' \ /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
Code repositories for project(s) associated with this 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).