ADD custom ceedling commands
Convience function to run the ceedling command
This commit is contained in:
parent
43c75a29e2
commit
53dd2a9084
1 changed files with 20 additions and 0 deletions
|
|
@ -602,3 +602,23 @@ https://github.com/remyferre/comment-dwim-2
|
|||
|
||||
(global-set-key (kbd "C-M-w") 'myrmi/save-symbol-at-point)
|
||||
#+END_SRC
|
||||
|
||||
** Ceedling
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defvar ceedling-project-file-name "project.yml")
|
||||
(defvar ceedling-cmd "ceedling")
|
||||
(defvar ceedling-project-root ".")
|
||||
|
||||
(defun myrmi/run-ceedling-tests (&optional file-name)
|
||||
(interactive)
|
||||
(let* (
|
||||
(file-path (or file-name buffer-file-name))
|
||||
(root-path (or (locate-dominating-file file-path ceedling-project-file-name) ceedling-project-root))
|
||||
)
|
||||
(compile
|
||||
(concat "cd " root-path " && " ceedling-cmd)
|
||||
)
|
||||
)
|
||||
)
|
||||
#+END_SRC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue