From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [babel] [PATCH] enhanced org-babel-goto-named-src-block Date: Wed, 29 Feb 2012 22:44:19 +0100 Message-ID: <80booh71sc.fsf@somewhere.org> References: <87hayid224.fsf@med.uni-goettingen.de> <87r4xerp9a.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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