emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-edit-src-code window setup


From: Michael Bach
Subject: [O] org-edit-src-code window setup
Date: Fri, 07 Feb 2014 12:29:04 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Dear org-mode Developers and Users,

(Org-mode version 8.2.5g from git)

I want to change the behaviour of C-c ' when inside a source block.
What I am after is best described in a schematic:

+---------------+---------------+
|               |               |
|               |       2       |                       
|               |               |
|               |               |
+       1       +---------------+
|               |               |
|               |       3       |
|               |               |
|               |               |
+---------------+---------------+

I am editing the .org file in window 1 ('org').  I want C-c ' to display
the code block contents in window 2 ('source').  In window 3 I want to
have the interpreter for the language I am editing ('interpreter').

I read up on the internal documentation:
`org-edit-special' > `org-edit-src-code' > `org-src-window-setup' >
other-window (`switch-to-buffer-other-window')

Now, when I do C-c ' multiple times, the source buffer changes from 2 to
3 and back again and so on - effectively switching the 'source' and
'interpreter' window contents on each C-c '.

After reading the documentation for `switch-to-buffer-other-window', I
wanted to check out the NORECORD option that has the description:

        Optional second argument NORECORD non-nil means do not put this
        buffer at the front of the list of recently selected ones.

Now is there a way to control this option that I miss?  Would it have
any effect?  How would you handle this situation?

Best Regards,
Michael Bach




reply via email to

[Prev in Thread] Current Thread [Next in Thread]