Created
October 5, 2019 03:00
-
-
Save garaemon/b9e96ece6c2730bcbffac8fccadbc2a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun ros-catkin-make (dir) | |
"Run catkin_make command in DIR." | |
(interactive (list default-directory)) | |
;; clear compilation buffer first not to occupy memory space. | |
(if (get-buffer "*catkin_make*") | |
(kill-buffer "*catkin_make*")) | |
(let* ((default-directory dir) | |
(compilation-buffer-name-function (lambda (major-mode-name) "*catkin_make*"))) | |
(compile "catkin bt --no-status")) | |
(switch-to-buffer-other-window (get-buffer-create "*catkin_make*")) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment