diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index f7b0572..dca2912 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -191,6 +191,7 @@ (html-web-mode . eglot-ensure) (scala-mode . eglot-ensure) (c-mode . eglot-ensure) + (ruby-mode . eglot-ensure) :custom (eglot-confirm-server-initiated-edits nil)) diff --git a/emacs/.emacs.d/config/init-ruby.el b/emacs/.emacs.d/config/init-ruby.el new file mode 100644 index 0000000..020d2a3 --- /dev/null +++ b/emacs/.emacs.d/config/init-ruby.el @@ -0,0 +1,8 @@ +;; -*- lexical-binding: t; -*- +(use-package ruby-mode + :straight (:typebuilt-in)) + +(use-package rbenv + :hook (after-init . global-rbenv-mode)) + +(provide 'init-ruby) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 93c825a..42623fc 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -94,6 +94,7 @@ (require 'init-java) (require 'init-scala) (require 'init-js) +(require 'init-ruby) (require 'init-rust) (require 'init-web) (require 'init-xml) diff --git a/homebrew/Brewfile b/homebrew/Brewfile index bf4267f..c93e941 100644 --- a/homebrew/Brewfile +++ b/homebrew/Brewfile @@ -37,9 +37,10 @@ brew "prettier" brew "pyenv" brew "pyright" brew "python@3.9" +brew "rbenv" brew "restic" brew "ripgrep" -brew "ruby" +brew "ruby-build" brew "sbt" brew "scala" brew "seamstress" diff --git a/zsh/.zshenv b/zsh/.zshenv index 3fb3e29..a7bed79 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -35,3 +35,7 @@ if [ -d "/opt/homebrew/Caskroom/google-cloud-sdk" ]; then fi [[ -e "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" + +if command -v rbenv &> /dev/null; then + eval "$(rbenv init - zsh)" +fi