mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Use tmux instead for build-tool
This commit is contained in:
parent
5f8a0ddb39
commit
157771e86e
1 changed files with 26 additions and 13 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'llvm-shared)
|
(require 'llvm-shared)
|
||||||
|
(require 'tmux-cmd)
|
||||||
|
|
||||||
(defvar lls/name-llvm-build-buffer
|
(defvar lls/name-llvm-build-buffer
|
||||||
(lambda (directory tools)
|
(lambda (directory tools)
|
||||||
|
|
@ -31,19 +32,31 @@
|
||||||
(file-name-nondirectory directory)
|
(file-name-nondirectory directory)
|
||||||
(string-join tools ","))))
|
(string-join tools ","))))
|
||||||
|
|
||||||
(defun ll/llvm-build-tool (directory tools)
|
;; (defun ll/llvm-build-tool (directory tools)
|
||||||
(interactive
|
;; (interactive
|
||||||
(list
|
;; (list
|
||||||
|
;; (my/completing-read "build directory" (lls/get-llvm-build-dirs))
|
||||||
|
;; (-->
|
||||||
|
;; (completing-read-multiple "ninja -j X "
|
||||||
|
;; '("clang"
|
||||||
|
;; "llc")))))
|
||||||
|
;; (let* ((buffer-name (funcall lls/name-llvm-build-buffer directory tools)))
|
||||||
|
;; (compilation-start
|
||||||
|
;; (lls/ninja-build-tools (lls/un-trampify directory) tools)
|
||||||
|
;; nil
|
||||||
|
;; (lambda (_) buffer-name))))
|
||||||
|
|
||||||
|
(defun-tmux-cmd-2 ll/llvm-build-tool (directory tools)
|
||||||
|
(:tmux-type transient
|
||||||
|
:interactive
|
||||||
|
((list
|
||||||
(my/completing-read "build directory" (lls/get-llvm-build-dirs))
|
(my/completing-read "build directory" (lls/get-llvm-build-dirs))
|
||||||
(-->
|
|
||||||
(completing-read-multiple "ninja -j X "
|
(completing-read-multiple "ninja -j X "
|
||||||
'("clang"
|
'("clang"
|
||||||
"llc")))))
|
"llc")))))
|
||||||
(let* ((buffer-name (funcall lls/name-llvm-build-buffer directory tools)))
|
(name (funcall lls/name-llvm-build-buffer directory tools))
|
||||||
(compilation-start
|
|
||||||
(lls/ninja-build-tools (lls/un-trampify directory) tools)
|
(lls/ninja-build-tools (lls/un-trampify directory) tools))
|
||||||
nil
|
|
||||||
(lambda (_) buffer-name))))
|
|
||||||
|
|
||||||
(provide 'llvm-build-tool)
|
(provide 'llvm-build-tool)
|
||||||
;;; llvm-build-tool.el ends here
|
;;; llvm-build-tool.el ends here
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue