From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: org-edit-src-code outside of org Date: Sat, 17 May 2014 10:23:00 +0200 Message-ID: <87ha4ozue3.fsf@mailbox.org> References: <87y4y55rpm.fsf@gmail.com> <87zjikfpa0.fsf@desiato.home.uhoreg.ca> <8761l4ewy7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlZuy-0004uP-VI for emacs-orgmode@gnu.org; Sat, 17 May 2014 04:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlZuk-0005UQ-Ag for emacs-orgmode@gnu.org; Sat, 17 May 2014 04:24:32 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:49265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlZuk-0005U2-23 for emacs-orgmode@gnu.org; Sat, 17 May 2014 04:24:18 -0400 In-Reply-To: <8761l4ewy7.fsf@gmail.com> (Jorge A. Alfaro-Murillo's message of "Sat, 17 May 2014 02:33:20 -0400") 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jorge A. Alfaro-Murillo" Cc: emacs-orgmode@gnu.org On 2014-05-17 08:33 Jorge A. Alfaro-Murillo wrote: > I figure it out, I am updating the variable that causes problems and it > is working very well so in case you want to use org-edit-src-code in > Message mode all is needed is: > > #+BEGIN_SRC emacs-lisp > (eval-after-load "message" > '(progn > (define-key message-mode-map (kbd "") > (lambda () > (interactive) > (if (not (org-try-structure-completion)) > (message-tab)))) > (define-key message-mode-map (kbd "C-c '") > (lambda () > (interactive) > (org-edit-src-code) > (setq-local org-edit-src-from-org-mode t))))) > #+END_SRC > > I just used it right now =) This has been bugging me for quite some time now, thank you very much for this, it works like it's supposed to! :) Regards, -- Alexander Baier