Browse files

gh-4 added malabar-compile-buffer to make the call easier

  • Loading branch information...
Matthew O. Smith
Matthew O. Smith committed Jan 15, 2014
1 parent 52556ce commit 1c44d289dc50f6f5df699f123680ccc30449e8b8
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/main/lisp/malabar-mode.el
@@ -176,6 +176,14 @@ command performs the following transform:
(malabar-compile-file t))
+;; see gh-4
+(defun malabar-compile-buffer (&optional buffer silent)
+ "Compiles the current buffer or buffer named BUFFER"
+ (interactive)
+ (let ((buffer (if buffer (get-buffer buffer) (current-buffer))))
+ (with-current-buffer buffer
+ (malabar-compile-file silent))))
(defun malabar-compile-file (&optional silent)
"Compiles the current buffer."

0 comments on commit 1c44d28

Please sign in to comment.