From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: [PATCH] org-src-edit support open edit buffer bellow current window Date: Tue, 13 Mar 2018 01:27:18 +0800 Message-ID: <9072a04c-f0f2-50c4-c3aa-dfc9fd647b7f@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------D9C978B37D66BD01B9A89725" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evREN-00055Y-EV for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 13:27:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evREK-0002LA-BF for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 13:27:27 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:33539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evREK-0002Kf-2y for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 13:27:24 -0400 Received: by mail-pf0-x22b.google.com with SMTP id q13so4643347pff.0 for ; Mon, 12 Mar 2018 10:27:24 -0700 (PDT) Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id h26sm14378910pgv.22.2018.03.12.10.27.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Mar 2018 10:27:21 -0700 (PDT) Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode This is a multi-part message in MIME format. --------------D9C978B37D66BD01B9A89725 Content-Type: multipart/alternative; boundary="------------75E66B5531F809094BCDC20A" --------------75E66B5531F809094BCDC20A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Add a more better way to open src block. --------------75E66B5531F809094BCDC20A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Add a more better way to open src block.

--------------75E66B5531F809094BCDC20A-- --------------D9C978B37D66BD01B9A89725 Content-Type: text/x-patch; name="0001-org-src.el-org-edit-src-support-open-edit-src-window.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-org-src.el-org-edit-src-support-open-edit-src-window.pa"; filename*1="tch" >From d0db82e0b3f7e6ff0102b4b08ba18de883da32e2 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Tue, 13 Mar 2018 01:23:52 +0800 Subject: [PATCH] org-src.el: (org-edit-src) support open edit src window below. --- lisp/org-src.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/org-src.el b/lisp/org-src.el index dfa2ae3de..5d3c2e538 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -155,6 +155,8 @@ Possible values for this option are: current-window Show edit buffer in the current window, keeping all other windows. +split-window-below Show edit buffer below the current window, keeping all + other windows. other-window Use `switch-to-buffer-other-window' to display edit buffer. reorganize-frame Show only two windows on the current frame, the current window and the edit buffer. When exiting the edit buffer, @@ -164,6 +166,7 @@ other-frame Use `switch-to-buffer-other-frame' to display edit buffer. :group 'org-edit-structure :type '(choice (const current-window) + (const split-window-below) (const other-frame) (const other-window) (const reorganize-frame))) @@ -746,6 +749,9 @@ If BUFFER is non-nil, test it instead." (`current-window (pop-to-buffer-same-window buffer)) (`other-window (switch-to-buffer-other-window buffer)) + (`split-window-below + (select-window (split-window-vertically)) + (pop-to-buffer-same-window buffer)) (`other-frame (pcase context (`exit -- 2.16.2 --------------D9C978B37D66BD01B9A89725--