ranger.el icon indicating copy to clipboard operation
ranger.el copied to clipboard

Add hook to disable scroll-bar only in ranger?

Open ianyepan opened this issue 5 years ago • 2 comments

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

ianyepan avatar Jul 05 '19 18:07 ianyepan

What about if you but a hook on mode change and toggle depending on the mode of the buffer?

punassuming avatar Jul 18 '19 04:07 punassuming

I'm not that proficient in Elisp, do you happen to have something in mind?

ianyepan avatar Jul 18 '19 04:07 ianyepan