Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purcell/ruby-hash-syntax
In Emacs, toggle ruby hash syntax between classic and 1.9 styles
https://github.com/purcell/ruby-hash-syntax
Last synced: 3 days ago
JSON representation
In Emacs, toggle ruby hash syntax between classic and 1.9 styles
- Host: GitHub
- URL: https://github.com/purcell/ruby-hash-syntax
- Owner: purcell
- Created: 2013-04-01T13:59:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T07:17:15.000Z (3 months ago)
- Last Synced: 2024-12-02T18:11:18.775Z (2 months ago)
- Language: Emacs Lisp
- Size: 11.7 KB
- Stars: 23
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
[![Melpa Status](http://melpa.org/packages/ruby-hash-syntax-badge.svg)](http://melpa.org/#/ruby-hash-syntax)
[![Melpa Stable Status](http://stable.melpa.org/packages/ruby-hash-syntax-badge.svg)](http://stable.melpa.org/#/ruby-hash-syntax)ruby-hash-syntax.el
===================Adapted from the method used by TextMate, this library provides
a command `ruby-hash-syntax-toggle` which attempts to automatically
convert the selected region of ruby code between 1.8 and 1.9 hash styles.Installation
=============If you choose not to use one of the convenient packages in
[MELPA][melpa], you'll need to add the
directory containing `ruby-hash-syntax.el` to your `load-path`, and then
`(require 'ruby-hash-syntax)`.Usage
=====Add the following to your emacs init file:
(require 'ruby-hash-syntax)
Then select a block of ruby code containing a hash literal (perhaps
using `mark-sexp`), and run the `ruby-hash-syntax-toggle` command:M-x ruby-hash-syntax-toggle
You might like to bind that command to a key in `ruby-mode-map`.
[melpa]: http://melpa.org
[💝 Support this project and my other Open Source work](https://www.patreon.com/sanityinc)
[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)
[✍ sanityinc.com](http://www.sanityinc.com/)