Skip to content

Commit

Permalink
editorconfig-emacs 0.6.1
Browse files Browse the repository at this point in the history
Includes Emacs Lisp implementation of core.

Closes #125.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information
dunn committed Dec 9, 2015
1 parent aa72018 commit 476b715
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Formula/editorconfig-emacs.rb
Expand Up @@ -3,14 +3,20 @@
class EditorconfigEmacs < EmacsFormula
desc "EditorConfig plugin for emacs"
homepage "http://editorconfig.org/"
url "https://github.com/editorconfig/editorconfig-emacs/archive/v0.5.tar.gz"
sha256 "7f4d7876109e2e25ee1beac071f85ed3687f69a1608b49adedbd3207f1357ae2"
url "https://github.com/editorconfig/editorconfig-emacs.git",
:tag => "v0.6.1",
:revision => "3d1e4797ea3f5a1bb6d0ec296f04ce05e6e368b4"
head "https://github.com/editorconfig/editorconfig-emacs.git"

depends_on "editorconfig"
option "without-editorconfig", "Use the Emacs Lisp implementation of EditorConfig Core"

depends_on :emacs => "24.1"
depends_on "cmake" => :build
depends_on "editorconfig" => :recommended
depends_on "homebrew/emacs/cl-lib" if Emacs.version < 24.3

def install
ENV["LC_ALL"] = "en_US.UTF-8"
system "make"
system "make", "test"
elisp.install "editorconfig.el", "editorconfig.elc"
Expand All @@ -20,6 +26,7 @@ def install
(testpath/"test.el").write <<-EOS.undent
(add-to-list 'load-path "#{elisp}")
(load "editorconfig")
(editorconfig-mode 1)
(editorconfig-set-indentation "space")
(print (minibuffer-prompt-width))
EOS
Expand Down

0 comments on commit 476b715

Please sign in to comment.