ranger.el
ranger.el copied to clipboard
Add hook to disable scroll-bar only in ranger?
Unlike most people, I actually enjoy the scroll-bar mode in GUI Emacs. However, when I use ranger I typically don't need the scroll-bar. I had this in my init file:
(add-hook 'ranger-mode-hook (lambda () (scroll-bar-mode -1)))
which to be fair, successfully disables scrollbars on entering a ranger buffer. Problem is when I exit ranger, the scrollbars are never enabled again...
What about if you but a hook on mode change and toggle depending on the mode of the buffer?
I'm not that proficient in Elisp, do you happen to have something in mind?