 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; etags-table
-;; Depending on the location of the file in buffer, the respetive TAGS file is
+;; Depending on the location of the file in buffer, the respective TAGS file is
 ;; opened on doing a tag find.
 (require 'etags-table)
+
 (setq etags-table-alist
       (list
-       `(,(concat user-emacs-directory "/.*") ,(concat user-emacs-directory "/TAGS"))
+       `(,(concat user-emacs-directory "/.*") ,(concat user-emacs-directory "/TAGS")) ;; emacs config
        ))
-;; (when (boundp 'project-root) ;; add-to-list if project-root symbol is defined
-;;     (add-to-list 'etags-table-alist
-;;                  `(,(concat project-root "/.*") ,(concat project-root "/TAGS")) t))
+
+(when (boundp 'uvm-source-code-dir) ;; add-to-list if uvm-source-code-dir symbol is defined
+  (add-to-list 'etags-table-alist
+               `(,(concat uvm-source-code-dir "/.*") ,(concat uvm-source-code-dir "/TAGS")) t))
+
 (setq etags-table-search-up-depth 15) ;; Max depth to search up for a tags file.  nil means don't search.
 
 

  (interactive)
  (when (boundp 'project-root) ;; add-to-list if project-root symbol is defined
    (add-to-list 'etags-table-alist
                 `(,(concat project-root "/.*") ,(concat project-root "/TAGS")) t))
  (etags-select-find-tag-at-point)
  )


;;    turn on `ctags-auto-update-mode'.


;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;; helm-etags+
;; ;; Source: https://github.com/jixiuf/helm-etags-plus

;; (require 'helm-etags+)

;; ;; dev suggested setting below variables to avoid the issue I posted on his
;; ;; github: https://github.com/jixiuf/helm-etags-plus/issues/9
;; (setq find-file-visit-truename nil)
;; (setq helm-etags+-follow-symlink-p nil)


(setq setup-ctags-loaded t)
