English 中文(简体)
D. 违约的窗口分散布局
原标题:default split window layout

我用90%的时间来编辑<代码>R文档ESS/code>(Emacs Speaks Statistics)。 在这种模式下,我认为必须有一个单独的窗口,即<代码>C-x 3C-x 2,因此,我可以同时看到源代码和(终点窗口)。 因此,每当我发射一个qu子时,我都需要采取以下步骤:把窗户分开,选择右边,转用<代码>*R*。 我如何节省各届会议的这种安排?

thanks.

最佳回答

现在有C-c C-z(S-switch-to-end-of-ESS),这种分离和转向低劣的缓冲。 我正在利用这一机会。

问题回答

为此:

(defun open-r-project ()
  (interactive)
  (delete-other-windows)
  (split-window-horizontally)
  (R)
  (ess-change-directory "~/projects/")
  (next-multiframe-window)
  (find-file "~/projects/")
  (previous-multiframe-window)
)

(global-set-key (kbd "C-c r")  open-r-project)

然而,我注意到这是我的第一个LISP功能。 我不知道如何使项目参数发挥作用。 明天将尝试。 Oh, 并且指出,I m使用SSN版本的ESS。

有一些一揽子计划确实如此。 >layout-restore 或许是最贴切的,但你可能想看一下在





相关问题
suppress additional braces in emacs electric mode

I started using ruby-electric-mode. I like it except that I am used to closing open brackets myself (the other pairing are still useful to me). How can I make emacs suppress additional brackets when ...

Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. What are some good references on setting up an emacs dev environment for windows? Anything ...

Emacs Setting which-function-mode

I would like to have which-function-mode on by default when I open up Emacs. I ve added the following lines to my .emacs file. (setq which-func-mode t) (setq which-function-mode t) When I open ...

Enabling go mode for emacs

I don t seem to be able to enable a go mode for emacs. C mode doesn t work without semicolons. The best I have found is the JavaScript mode by Karl Landstrom, since JavaScript also doesn t require ...

Custom Emacs key bindings are not working

The key bindings I ve defined in my .emacs file aren t working. Here s the file: ;init modes (menu-bar-mode 0) (tool-bar-mode 0) (cua-mode) (column-number-mode) (fset perl-mode cperl-mode) (cperl-...

eval during emacs lisp macro expansion

How can I fix the simple macro foo in (elisp)Eval During Expansion? None of the followings work: (defmacro foo1 (a) `(setq (eval ,a) t)) (defmacro foo2 (a) `(setq ,(eval a) t)) (defmacro foo3 (...

Get local cvs comment history when committing file/s in emacs

I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I ve used in a previous commit when I am in the process of writing a ...

热门标签