From 49e859c0d2bf41fa648e0da45a6d5b114b0d2240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 9 Aug 2022 21:51:58 +0200 Subject: Add eb.el. Emacs is not a great IDE out-of-the-box, but it is very flexible -- and in many ways a lot more transparent than most normal IDEs. --- eb.el | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 eb.el (limited to 'eb.el') diff --git a/eb.el b/eb.el new file mode 100644 index 0000000..594c4e3 --- /dev/null +++ b/eb.el @@ -0,0 +1,27 @@ +;;; eb --- Episode Browser development functions for Emacs + +;;; Commentary: + +;;; Code: + +(defcustom eb-cwd "b" + "Working directory for executable." + :group 'eb + :type 'directory) + +;;;###autoload +(defun eb-run () + "Launch built executable, displaying its output in a buffer." + (interactive) + (require 'project) + (let ((buf (get-buffer-create "*eb-run*")) + (exe (concat (project-root (project-current)) + "/b/EpisodeBrowser.exe")) + (default-directory eb-cwd)) + (with-current-buffer buf + (compilation-mode)) + (start-process "EpisodeBrowser" buf exe) + (display-buffer buf))) + +(provide 'eb) +;;; eb.el ends here -- cgit v1.2.3