Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (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*"))
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement