Skip to content

Avoiding split windows on multiple frame systems #21

@heikiheikijp

Description

@heikiheikijp

I usually run Emacs with multiple frames rather than windows. Currently, by default behaviour, gf-display-inf-buffer splits each frame. This can be avoided by setting pop-up-frames to null but that is often not desired.
I prefer to have one frame open for the GF shell without switching focus to it when loading files with C-c C-l. This is achieved with the following change to the code. I leave it here as a suggested improvement, in case others find this useful.

(defun gf-display-inf-buffer () "Display inferior GF buffer." (interactive) (and (get-buffer gf-process-buffer-name) (if (get-buffer-window gf-process-buffer-name t) (display-buffer-use-some-window gf-process-buffer-name nil) (display-buffer gf-process-buffer-name nil))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions