emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo)
To: emacs-orgmode@gnu.org
Subject: Re: org-edit-src-code outside of org
Date: Sat, 17 May 2014 02:33:20 -0400	[thread overview]
Message-ID: <8761l4ewy7.fsf@gmail.com> (raw)
In-Reply-To: 87zjikfpa0.fsf@desiato.home.uhoreg.ca

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 =)

Jorge.

  reply	other threads:[~2014-05-17  6:33 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 [this message]
2014-05-17  8:23     ` Alexander Baier
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

  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=8761l4ewy7.fsf@gmail.com \
    --to=jorge.a.alfaro@gmail.com \
    --cc=emacs-orgmode@gnu.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).