如何将org-agenda打开时的位置显示在右边?

我的org-agenda打开时默认位置在窗口下面,想改到右边显示。

Purcell: init-window.el 里面的一个函数,可以用做参考。

(defun split-window-horizontally-instead ()
  "Kill any other windows and re-split such that the current window is on the top half of the frame."
  (interactive)
  (let ((other-buffer (and (next-window) (window-buffer (next-window)))))
  (delete-other-windows)
  (split-window-horizontally)
  (when other-buffer
    (set-window-buffer (next-window) other-buffer))))

(p.s. 论坛的代码复制粘贴排版不太会,我每一行都要手动空格锁进,而且没法高亮,有什么方法呢?)

网上抄到过一个配置,没有记在哪里找到的,对不起原作者了,供参考:

(setq split-height-threshold nil)
(setq split-width-threshold 0)
1 个赞

空4格是标准风格的markdown,可以使用不那么标准的

```lisp
````

指定代码的语言