File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1
1
# julia-ctags
2
+
3
+ This adds Julia support to [ CTAGS] ( https://ctags.io/ ) .
4
+
5
+ To create CTAGS for Julia itself run
6
+ ```
7
+ ctags -R -e --options=path-to-this-ctags-file --totals=yes path-to-julia/base
8
+ ```
9
+ (the ` -e ` is to make Emacs compatible ETAGS, leave off if using
10
+ another editor).
11
+
12
+ To make tags for all the packages in the package directory
13
+ ```
14
+ ctags -R -e --options=path-to-this-ctags-file --totals=yes --exclude=`.*` --exclude=.git --languages=julia ~/.julia/v0.6
15
+ ```
16
+
17
+ To then use it in the one-true-editor (emacs) add this to your
18
+ ` .emacs ` :
19
+ ```
20
+ ;; CTAGS ETAGS
21
+ ; https://www.emacswiki.org/emacs/EtagsTable
22
+ (require 'etags-table)
23
+ (setq etags-table-alist
24
+ '(
25
+ (".*\\.jl$" "/home/mauro/julia/julia-0.6/TAGS" "/home/mauro/.julia/v0.6/TAGS")
26
+ ))
27
+ (setq tags-case-fold-search nil) ; case sensitive search
28
+ ```
29
+ (needs installation of ` etags-table ` , maybe there is a better way to
30
+ do this?)
31
+
32
+ This used to be in the main julia
33
+ [ repo] ( https://github.com/JuliaLang/julia/blob/10ebd63343a3c57ea40ccfb62efcee78c2869885/contrib/ctags ) ,
34
+ see there for original contributors.
35
+
36
+ # TODO
37
+
38
+ - add example to use tags-file in the other one-true-editor (VIM), and
39
+ maybe other, lesser one-true-editors.
40
+ - make a PR against https://github.com/universal-ctags/ctags
You can’t perform that action at this time.
0 commit comments