-
Notifications
You must be signed in to change notification settings - Fork 8
/
run-command-runner-compile.el
43 lines (28 loc) · 1.3 KB
/
run-command-runner-compile.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;;; run-command-runner-compile.el --- term-mode runner -*- lexical-binding: t -*-
;; Copyright (C) 2020-2023 Massimiliano Mirra
;; Author: Massimiliano Mirra <[email protected]>
;; URL: https://github.com/bard/emacs-run-command
;; This file is not part of GNU Emacs
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; For a full copy of the GNU General Public License
;; see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Runner for `run-command' based on `compilation-mode'.
;;; Code:
(require 'run-command-core)
(defun run-command-runner-compile (command-line _buffer-base-name output-buffer)
"Command runner based on `compilation-mode'.
Executes COMMAND-LINE in buffer OUTPUT-BUFFER."
(with-current-buffer output-buffer
(compilation-mode)
(compilation-start command-line)))
;;;; Meta
(provide 'run-command-runner-compile)
;;; run-command-runner-compile.el ends here