emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: [babel] [PATCH] enhanced org-babel-goto-named-src-block
Date: Wed, 29 Feb 2012 22:44:19 +0100	[thread overview]
Message-ID: <80booh71sc.fsf@somewhere.org> (raw)
In-Reply-To: CAHRqSkQX7=BFpGOz5pbW37Mx9wmCDrdzPHZizRQ_2f7zbfLO8Q@mail.gmail.com

Hi Jonathan,

Jonathan Leech-Pepin wrote:
> I ran into exactly that question this morning and managed to figure it out.
>
> If I use "emacs -q" then C-c & works as expected and is mapped to
> (org-mark-ring-goto & optional N).  However when trying C-c & C-h I find
> out that C-c & is a prefix for a few yasnippet commands:
>
> ,----
> | `yas/minor-mode' Minor Mode Bindings Starting With C-c &:
> | key binding
> | --- -------
> |
> | C-c & C-f yas/find-snippets
> | C-c & C-n yas/new-snippet
> | C-c & C-s yas/insert-snippet
> | C-c & C-v yas/visit-snippet-file
> `----
>
> Seems this is another place where yas and org don't get along well together

Something along these lines should work:

#+begin_src emacs-lisp
      ;; remove the binding of `C-c &'
      (add-hook 'yas/minor-mode-hook
                (lambda ()
                  (define-key global-map (kbd "C-c & C-s") nil)
                  (define-key global-map (kbd "C-c & C-n") nil)
                  (define-key global-map (kbd "C-c & C-v") nil)
                  (define-key global-map (kbd "C-c & C-f") nil)
                ))
#+end_src

... but it doesn't. And I don't understand yet why. Maybe the hook in which
this is placed is not the right one?  If anyone sees an obvious reason for
it...

Best regards,
  Seb

-- 
Sebastien Vauban

  reply	other threads:[~2012-02-29 21:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22 20:51 [babel] [PATCH] enhanced org-babel-goto-named-src-block Andreas Leha
2012-02-25 16:36 ` Eric Schulte
2012-02-29  0:39 ` Thomas S. Dye
2012-02-29  8:57   ` Andreas Leha
2012-02-29 16:09     ` Thomas S. Dye
2012-02-29 19:48       ` Jonathan Leech-Pepin
2012-02-29 21:44         ` Sebastien Vauban [this message]
2012-02-29 22:24           ` Andreas Leha
2012-02-29 23:52             ` Thomas S. Dye
2012-03-01  8:19               ` Andreas Leha

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=80booh71sc.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).