Previous: , Up: 複数ウィンドウ   [Contents][Index]


22.9 Window Tool Bar

The command global-window-tool-bar-mode toggles the display of a tool bar at the top of each window. When enabled, multiple windows can display their own tool bar simultaneously. To conserve space, a window tool bar is hidden if there are no buttons to show, i.e. if tool-bar-map is nil.

If you want to toggle the display of a window tool bar for only some buffers, run the command window-tool-bar-mode in those buffers. This is useful to put in a mode hook. For example, if you want the window tool bar to appear only for buffers that do not represent files and have a custom tool bar, you could add the following code to your init file (see Emacs初期化ファイル):

(add-hook 'special-mode-hook 'window-tool-bar-mode)

Emacs can also display a single tool bar at the top of frames (see ツールバー).

Note that the window tool bar displays in the same space as the tab line, so only one of them can be displayed at any given time, unless you customize the value of tab-line-format to add (:eval (window-tool-bar-string)) to tab-line-format. See Mode Line Format in The Emacs Lisp Reference Manual.

This page has generated for branch:work/emacs-30_0a626a64c70e6842027d58dd2b52776d864cedb2, commit:aba89607c272c7757a38900ef92dd177fbb5e3fc to check Japanese translation.