This is a Emacs major mode for editing RBS (a type signature language for Ruby).
You can install the package from MELPA (recommeded), or download it directly as below:
-
Download the package, e.g.
curl -L https://raw.githubusercontent.com/ybiquitous/rbs-mode/HEAD/rbs-mode.el -o ~/.emacs.d/elisp/rbs-mode.el
-
Edit your
~/.emacs.d/init.el
, e.g.(add-to-list 'load-path "~/.emacs.d/elisp") (require 'rbs-mode)
When the installation is completed, let's try to open a RBS file!
- Download RBS files via
git clone https://github.com/ruby/rbs.git
- Open a RBS file, e.g. C-x C-f
core/object.rbs
Welcome to your contribution! Feel free to open an issue or pull request.