rksm / emacs-rust-config

emacs.d files for making Emacs a Rust development environment
MIT License
93 stars 29 forks source link

Updates standalone.el so it can run in non-GUI mode #3

Closed algal closed 3 years ago

algal commented 3 years ago

The function scroll-bar-mode is not present when emacs is running in tty mode. This edit verifies it’s present before trying to run it, so that this can run in a terminal without a GUI.

I have verified that with this change, standalone.el runs to completion without leaving errors in the Messages buffer, on Ubuntu 20.04 running emacs 27.1.

(I have not verified that all emacs-rust-config functionality is working in this setting.)

rksm commented 3 years ago

Cool, thank you!