Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. (defun ros-catkin-make (dir)
  2. "Run catkin_make command in DIR."
  3. (interactive (list default-directory))
  4. ;; clear compilation buffer first not to occupy memory space.
  5. (if (get-buffer "*catkin_make*")
  6. (kill-buffer "*catkin_make*"))
  7. (let* ((default-directory dir)
  8. (compilation-buffer-name-function (lambda (major-mode-name) "*catkin_make*")))
  9. (compile "catkin bt --no-status"))
  10. (switch-to-buffer-other-window (get-buffer-create "*catkin_make*"))
  11. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement