[英]Get emacs to open customize-group windows in -other-window
I want to force emacs to always open customize-group windows in -other-window. 我想强制emacs始终在-other-window中打开自定义组窗口。
Is this possible? 这可能吗?
You said: 你说:
I know about that function. 我知道该功能。 But clicking on customize in the menu runs customize-group
not customize-group-other-window
. 但是,单击菜单中的定制将运行customize-group
而不是customize-group-other-window
。 I want customize-group
to be an alias for customize-group-other-window
–- MDCore Sep 30 '10 at 9:23 我希望customize-group
成为customize-group-other-window
的别名– MDCore 2010年9月30日,9:23
If that is really what you want then just do it: 如果那确实是您想要的,那就去做:
(defalias 'customize-group 'customize-group-other-window)
But I would guess that you don't really want to alias the commands , but rather you just want to remap the key bindings. 但是我想您实际上并不想为命令添加别名,而只是想重新映射键绑定。 If that is the case, this is the answer: 如果是这样,这就是答案:
(global-set-key [remap customize-group] 'customize-group-other-window)
That remaps all "keys" that were bound to customize-group
, including menu item Options
> Customize
> Customize Group
, to command customize-group-other-window
. 这会将绑定到customize-group
所有“键”重新映射到命令customize-group-other-window
,包括菜单项Options
> Customize
> Customize Group
。
There is a special function for this: 为此有一个特殊功能:
customize-group-other-window is an interactive compiled Lisp function in `cus-edit.el'. custom-group-other-window是在cus-edit.el中的一个交互式编译的Lisp函数。
(customize-group-other-window &optional GROUP) (自定义组其他窗口和可选组)
Customize GROUP, which must be a customization group, in another window. 在另一个窗口中,自定义组(必须是自定义组)。
Look at special-display-regexps
. 查看special-display-regexps
。
There are a couple options that might work: 有几个选项可能会起作用:
Specify an entry like (REGEXP FRAME-PARAMETERS)
with (same-frame . t)
. 用(same-frame . t)
(REGEXP FRAME-PARAMETERS)
指定一个条目,例如(REGEXP FRAME-PARAMETERS)
(same-frame . t)
。 I don't know if this will necessarily use a different window (in contrast to (same-window . t)
). 我不知道这是否一定会使用其他窗口(与(same-window . t)
相反)。
Specify an entry like (REGEXP FUNCTION OTHER-ARGS)
where the FUNCTION argument is customize-group-other-window
. 指定类似(REGEXP FUNCTION OTHER-ARGS)
的条目,其中FUNCTION参数为customize-group-other-window
。 It's normally used with a new frame, so you might have to play with the special-display-function
too. 它通常用于新框架,因此您可能还必须使用special-display-function
。
如果您将专用窗口用于*Help*
则单击Customize
链接将始终使用另一个窗口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.