centered-window-mode icon indicating copy to clipboard operation
centered-window-mode copied to clipboard

Does not work with EIN buffers.

Open lgmoneda opened this issue 7 years ago • 3 comments

Expected behavior

Center an EIN buffer.

Actual behavior

It works for other buffers, but not with EIN ones. But i can center it manually using fringes (is that what the mode does?) with (fringe-mode '(200 . 200)).

Steps to reproduce

  • ein:notebooklist-open
  • M-x centered-window-mode

Backtraces if necessary (M-x toggle-debug-on-error)

Versions of centered-window-mode, Emacs, OS etc.

  • centered-window-mode: 20170528
  • Emacs: 25.2
  • OS: Debian

lgmoneda avatar Jun 14 '17 20:06 lgmoneda

Hi @lgmoneda by default all buffers starting by * (except *scratch*) are ignored, is the name of your buffer like that?

anler avatar Jun 17 '17 19:06 anler

Indeed, @anler, the EIN buffers all start with a *. Is there a variable to customize it? Thanks for helping!

lgmoneda avatar Jun 18 '17 13:06 lgmoneda

@lgmoneda the customization variable is cwm-ignore-buffer-predicates which is a list of functions to test if a a given buffer should be ignored, by default it contains only the function cwm-special-buffer-p. If you want to activate the mode in all special buffers just add (setq cwm-ignore-buffer-predicates nil) to your emac's init, otherwise you can create a new function that uses internally cwm-special-buffer-p but also checks that the buffer is not an EIN one.

anler avatar Jun 18 '17 21:06 anler