DEV Community

loading...

Using bundle exec with Flycheck in Emacs

ivanguerreschi profile image Ivan Guerreschi ・1 min read

Create a .dir-locals.el file in the project root and
edit the file with this code in Emacs Lisp

((ruby-mode . ((eval . (setq-local flycheck-command-wrapper-function
  (lambda (command)
    (append '("bundle" "exec") command)))))))
Enter fullscreen mode Exit fullscreen mode

Discussion

pic
Editor guide