[Emacs] Edit src blocks in same frame in org-mode

This commit is contained in:
Ivan Malison 2016-11-07 13:46:39 -08:00
parent 8297e27aba
commit 67fbec9cd7
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -2842,7 +2842,8 @@ Intero seems to be causing hangs, so it has been disabled
#+END_SRC #+END_SRC
** Document ** Document
*** org *** org
#+BEGIN_SRC emacs-lisp **** config
#+BEGIN_SRC emacs-lisp
(use-package org (use-package org
:ensure org-plus-contrib :ensure org-plus-contrib
:preface :preface
@ -3251,6 +3252,16 @@ Intero seems to be causing hangs, so it has been disabled
;; EXPIRED TODO to indicate that the owner is not necessarily to ;; EXPIRED TODO to indicate that the owner is not necessarily to
;; blame. ;; blame.
)) ))
#+END_SRC
**** Use frames
#+BEGIN_SRC emacs-lisp
(use-package org
:config
(progn
(setq org-src-window-setup 'current-window)
(when (imalison:use-frames-only)
(progn
(setcdr (assoc 'file org-link-frame-setup) 'find-file-other-frame)))))
#+END_SRC #+END_SRC
**** Set Background Color of Source Blocks for Export **** Set Background Color of Source Blocks for Export
This was taken from [[http://emacs.stackexchange.com/questions/3374/set-the-background-of-org-exported-code-blocks-according-to-theme][here]]. This was taken from [[http://emacs.stackexchange.com/questions/3374/set-the-background-of-org-exported-code-blocks-according-to-theme][here]].