[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-edit-src-code outside of org
From: |
Alexander Baier |
Subject: |
Re: [O] org-edit-src-code outside of org |
Date: |
Sat, 17 May 2014 10:23:00 +0200 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) |
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