Code Monkey home page Code Monkey logo

Comments (4)

biot023 avatar biot023 commented on July 20, 2024

Update: It looks like a confilct with yasnippet. Adding the following to the end of my init.el file seems to have fixed the issue for now, unless it has introduced any other wrinkles I've yet to come across:

;; Indent on newline
(define-key global-map (kbd "RET") 'newline-and-indent)
(eval-after-load 'ruby-mode
'(progn
(define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)))
(eval-after-load 'yas-mode
'(progn
(define-key yas-mode-map (kbd "RET") 'reindent-then-newline-and-indent)))

from emacs24-starter-kit.

eschulte avatar eschulte commented on July 20, 2024

Thanks for sharing your solution. If you could turn this into a patch against starter-kit-ruby.org which does not change the global key map then I'd be happy to apply the patch. If yasnippet is changing key bindings in ruby mode, then maybe this should be reported upstream to the yasnippet maintainers.

from emacs24-starter-kit.

morganastra avatar morganastra commented on July 20, 2024

Just a shot in the dark, but yasnippet is clobbering the ruby-mode keymap, could you fix it by loading them in the other order?

from emacs24-starter-kit.

biot023 avatar biot023 commented on July 20, 2024

I'll have a look, but it will have to wait until next week, I'm afraid --
we have a new dev starting, and I'm working pretty much around the clock to
get everything ready for them.
Of all the times to buy a new computer, too! :)
Cheers,
Doug.

On 29 May 2013 18:57, jumpcannon [email protected] wrote:

Just a shot in the dark, but yasnippet is clobbering the ruby-mode keymap,
could you fix it by loading them in the other order?


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-18634494
.

from emacs24-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.