So it occurs offen that the full path always exceeds sr-speedbar window width. Is there a way to hack sr-speedbar to display the fully path seperately in a sufficient long bar or wrap the path if it exceeds the window width?
Done by adding the following to my init file:
(add-hook 'speedbar-mode-hook (lambda () (setq truncate-lines nil)))
Was having a hard time to make it also happen in spacemacs, but in case someone has the same issue, note the wrapping will become ineffective when other setttings are present, so better add all the sr-speedbar settings in hooks altogether:
(defun startup_layout ()
(setq sr-speedbar-right-side nil sr-speedbar-width 50)
(sr-speedbar-toggle)
(with-current-buffer sr-speedbar-buffer-name (setq window-size-fixed 'width))
(other-window 1)
)
(add-hook 'emacs-startup-hook 'startup_layout)
(add-hook 'speedbar-mode-hook (lambda () (setq truncate-lines nil)))
And also put in user-init instead of user config.
Knowing Problem:
When sr-speedbar-width is set less than 50, the name of path cannot be wrapped.