Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with EIN buffers. #27

Open
lgmoneda opened this issue Jun 14, 2017 · 3 comments
Open

Does not work with EIN buffers. #27

lgmoneda opened this issue Jun 14, 2017 · 3 comments

Comments

@lgmoneda
Copy link

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
@anler
Copy link
Owner

anler commented Jun 17, 2017

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

@lgmoneda
Copy link
Author

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

@anler
Copy link
Owner

anler commented Jun 18, 2017

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants