Browse Source

Put TAGS in the right place

Josh Bicking 4 years ago
parent
commit
24a2a81878
1 changed files with 4 additions and 1 deletions
  1. 4 1
      spacemacs/.spacemacs

+ 4 - 1
spacemacs/.spacemacs

@@ -374,7 +374,10 @@ you should place your code here."
     "Create tags file."
     (interactive "DDirectory: ")
     (eshell-command
-     (format " find \"%s\" -type f -regextype sed -regex \".*\\.\\(cpp\\|c\\|h\\)$\" | etags -" dir-name)))
+     (format
+      "find \"%s\" -type f -regex \".*\\.[cChH]\\(pp\\)?\" | etags --output=\"%s\" -"
+      dir-name
+      (concat (file-name-as-directory dir-name) "TAGS"))))
 
   (with-eval-after-load 'rust-mode
     (add-hook 'flycheck-mode-hook #'flycheck-rust-setup))