c476c03360
ruby-end-mode does not always behave correctly. An example for that is if statements, which don't have an end statement if they are written on one line. Also, it feels dirty to use a Ruby package to implement Elixir syntax behaviour. Smartparens has functionality to define pairs for certain major modes. This adds smartparens pairs for the "do" keyword and the arrow (->) operator, so that the "end" keyword is automatically inserted and properly indented on enter.
20 lines
391 B
EmacsLisp
20 lines
391 B
EmacsLisp
;;; packages.el --- Elixir Layer packages File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(setq elixir-packages
|
|
'(
|
|
alchemist
|
|
company
|
|
elixir-mode
|
|
popwin
|
|
smartparens
|
|
))
|