all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Baier <alexander.baier@mailbox.org>
To: "Jorge A. Alfaro-Murillo" <jorge.a.alfaro@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-edit-src-code outside of org
Date: Sat, 17 May 2014 10:23:00 +0200	[thread overview]
Message-ID: <87ha4ozue3.fsf@mailbox.org> (raw)
In-Reply-To: <8761l4ewy7.fsf@gmail.com> (Jorge A. Alfaro-Murillo's message of "Sat, 17 May 2014 02:33:20 -0400")

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 "<tab>")
>          (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

  reply	other threads:[~2014-05-17  8:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13 20:49 org-edit-src-code outside of org Jorge A. Alfaro-Murillo
2014-05-13 20:58 ` Ken Mankoff
2014-05-13 21:12   ` Jorge A. Alfaro-Murillo
2014-05-14 13:44 ` Hubert Chathi
2014-05-17  6:33   ` Jorge A. Alfaro-Murillo
2014-05-17  8:23     ` Alexander Baier [this message]
2014-05-27  8:32 ` Thorsten Jolitz

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ha4ozue3.fsf@mailbox.org \
    --to=alexander.baier@mailbox.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=jorge.a.alfaro@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.