-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: customize a blacklist
of mode where topspace
should not be activated
#3
Comments
Hi, thanks for the input! This sounds like a good idea and I can implement this. However, first I have some questions for you:
I think it will still be a good idea to implement the feature you mentioned. I propose making a customizable variable called |
Hey @trevorpogue! I'll answer in order:
The solution you propose sounds very very flexible, I like a lot :) |
Okay thanks for the information, it's helpful. I'm working on the feature. In the meantime, I was curious, do you like the overall behaviour when |
Definitely on by default for me. Honestly, without it on i would just forget it's there. |
Okay that's good, I have the same feeling. |
Resolves #3. * Add customizable variable `topspace-active` to determine when `topspace-mode` mode is active / has any effect on buffer. It can be set to t, nil, or a predicate function. This is useful in particular when `global-topspace-mode` is enabled but you want `topspace-mode` to be inactive in certain buffers or in any specific circumstance. When inactive, `topspace-mode` will still technically be on, but will be effectively off and have no effect on the buffer. * Allow `topspace-autocenter-buffers` to be either t, nil, or a predicate function (before it could only be t or nil)
So based on the screenshots its behaving as designed except its pushing the text in the top window a few lines too far down. I've noticed this happens in buffers with little pictures/emoticon type characters in it which make the line height taller than before, but that is a separate issue for some other time. I've added a variable called This is the most flexible way possible to filter the mode being on/off from I also made |
Thank you so much! @trevorpogue For anyone else that is interested, this is how I have it configured now, it works like a charm :) (use-package! topspace
:config
(defun dan/topspace--active-p ()
(not (memq major-mode '(vterm-mode org-agenda-mode))))
:custom
(topspace-active #'dan/topspace--active-p)
:hook
(doom-first-buffer . global-topspace-mode))
|
Is your feature request related to a problem? Please describe.
Some modes, like
telega
,org-agenda-mode
look really bad with this mode active, which prevents me from using theglobal-topspace-mode
Describe the solution you'd like
It would be nice if there was a
defcustom
variable to customize certain modes where the user does not wish this mode to be active.The text was updated successfully, but these errors were encountered: