Skip to content

Commit

Permalink
remove blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tonini committed Nov 24, 2013
1 parent 7d4c8a5 commit d266cd6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions elixir-mix.el
Expand Up @@ -136,27 +136,20 @@
(defvar elixir-mix--local-install-option-types '("path" "url")
"List of local.install option types.")



(defun elixir-mix--compilation-kill-any-orphan-proc ()
"Ensure any dangling buffer process is killed."
(let ((orphan-proc (get-buffer-process (buffer-name))))
(when orphan-proc
(kill-process orphan-proc))))


(define-compilation-mode elixir-mix-compilation-mode "ElixirMix"
"Mix compilation mode."
(progn

(font-lock-add-keywords nil
'(("0 failures" . compilation-info-face)
("\[[:digit:]]+ failures" . compilation-error-face)
("^Finished in .*$" . font-lock-string-face)
("^ElixirMix.*$" . font-lock-string-face)))



;; Set any bound buffer name buffer-locally
(setq elixir-mix--compilation-buffer-name elixir-mix--compilation-buffer-name)
(set (make-local-variable 'kill-buffer-hook)
Expand All @@ -178,7 +171,6 @@ It walking the directory tree until it finds a elixir project root indicator."
(split-string command)
command)))))


(defun elixir-mix-task-runner (name cmdlist)
"In a buffer identified by NAME, run CMDLIST in `elixir-mix-compilation-mode'.
Returns the compilation buffer."
Expand Down Expand Up @@ -229,7 +221,6 @@ Returns the compilation buffer."
(error "The given file doesn't exists"))
(elixir-mix-execute (list "test" (expand-file-name filename))))


(defun elixir-mix-compile (command)
"Compile the whole elixir project."
(interactive "Mmix compile: ")
Expand Down Expand Up @@ -294,7 +285,6 @@ Returns the compilation buffer."
(elixir-mix-task-runner elixir-mix-buffer-name
(elixir-mix--build-runner-cmdlist command))
(cd old-directory)))


;;;###autoload
(define-minor-mode global-elixir-mix-mode
Expand Down

0 comments on commit d266cd6

Please sign in to comment.