Skip to main content

Questions tagged [ruby]

The tag has no usage guidance.

0 votes
1 answer
26 views

In shell-mode, Ruby interactive shell irb repeatedly echoes input line built up from every successive input character

As the title says, when I run the Ruby interactive shell irb in a shell-mode buffer on MacOS, my input line is echoed back many times, character by successive character. Example: irb(main):001> 1+...
Sean's user avatar
  • 941
0 votes
0 answers
230 views

Ruby Eglot Tree-Sitter Configuration

Has anyone managed an eglot and tree-sitter configuration for ruby that has a reasonably full feature set. I have both activated, but here are some things that don't work: xref jumping code folding ...
Daniel Doherty's user avatar
0 votes
1 answer
105 views

Indentation in HEREDOC

I'm looking for a way to make the indentation in HEREDOCs better. In my case, it's specifically in Ruby, but maybe this is a general question. Basically, I have the following situation: in our tests, ...
flooose's user avatar
  • 521
0 votes
1 answer
65 views

Ruby+imenu not showing private methods

I'm a little surprised that I haven't found anything on the web about this, but I've got a Ruby file and its private methods aren't listed by imenu. Given the following class: class Blub def hi &...
flooose's user avatar
  • 521
0 votes
1 answer
326 views

Suppress "Ignoring <ruby gem>" messages on emacs startup

When I start emacs, I get a bunch of messages Ignoring charlock_holmes-0.7.7 because its extensions are not built. Try: gem pristine charlock_holmes --version 0.7.7 Ignoring escape_utils-1.2.1 ...
Jake Ireland's user avatar
0 votes
0 answers
229 views

Error (use-package): Cannot load ruby-test-mode

Installed Spacemacs and opened a ruby file. It got this error: Error (use-package): Cannot load ruby-test-mode I have researched on this issue: https://github.com/syl20bnr/spacemacs/commit/...
oiio's user avatar
  • 1
0 votes
0 answers
29 views

Has anyone worked out configuring objed for ruby?

I am interested in trying out objed, but I find that out of the box it gets blocks and expressions wrong in ruby mode. For example, I notice that in identifying a defun it includes any comments and ...
Daniel Doherty's user avatar
0 votes
1 answer
100 views

Autoloaded variable overrides the one from the init file

I added the following line to my init file to replace ruby-mode with enh-ruby-mode: (setq auto-mode-alist (mapcar (lambda (x) (if (eq (cdr x) 'ruby-mode) (cons (car ...
x-yuri's user avatar
  • 291
1 vote
1 answer
239 views

How do I make emacs indent relative to the beginning of the previous line?

Here's how emacs indents e.g. Python code: a = myfun(b, c) I'd like it to be this way: a = myfun(b, c) Reasoning? If I later replace myfun with myfunction, in the first case it becomes:...
x-yuri's user avatar
  • 291
5 votes
1 answer
1k views

Using emacs for ruby development with asdf version manager

I have installed a (doom) emacs to start developing with Ruby. So far I have mainly used Sublime Text but because of reasons I want to give emacs a chance. I tried Spacemacs too but uninstalled this ...
Gernot's user avatar
  • 151
5 votes
2 answers
1k views

How to make flycheck checker 'ruby-rubocop' use 'bundle exec rubocop' as executable?

I want ruby-rubocop Flycheck syntax checker to execute bundle exec rubocop instead of just rubocop. What I've tried: (setq flycheck-ruby-rubocop-executable "bundle exec rubocop") Results in ...
kolen's user avatar
  • 221
-2 votes
1 answer
79 views

Can "kaz-yos/eval-in-repl" use the prexisting "inf-ruby" console started by robe mode

I've been using org babel to execute ruby code, works well but wrapping blocks with begin_src/end_src is cumbersome no live output - i have to wait till the whole process finishes to see output ...
american-ninja-warrior's user avatar
0 votes
2 answers
318 views

How to run a command in Emacs (rvm-use) against all current and future buffers?

I am very new to Emacs. In my case what I'm actually using is Spacemacs. I have few versions of Ruby installed in my system and I use RVM for switching between them. I'm trying to change current ...
Bo Yi's user avatar
  • 3
2 votes
0 answers
191 views

Inconsistent hash indentation in ruby-mode

I've noticed that indent-region behaves this way in ruby-mode: { down_payment: 40.00, payment_day: 10 } { "down_payment": 40.00, "payment_day": 10 } Both are valid Ruby ...
Maciej Szlosarczyk's user avatar
1 vote
1 answer
61 views

Add breakpoints to a source code file en masse

I'm editing a .rb file with about 3000 lines of code. This file has about 30+ statements that does a .create( create() appears in many ways: as part of another expression: puts Foo.create(...) or ...
american-ninja-warrior's user avatar

15 30 50 per page