Tweak how to setup Julia
This commit is contained in:
parent
48630b91e7
commit
a5697c0c68
17
README.org
17
README.org
@ -4724,11 +4724,13 @@ configuration:
|
|||||||
1. Listing [[lst:minimal-eglot-setup][minimal Eglot setup]] adds key bindings to =eglot-mode-keymap=.
|
1. Listing [[lst:minimal-eglot-setup][minimal Eglot setup]] adds key bindings to =eglot-mode-keymap=.
|
||||||
2. Listing [[lst:setup-oglot]] uses [[https://github.com/gav451/oglot#][oglot]] to enable using [[https://github.com/joaotavora/eglot][Eglot]] in =org-src-mode=
|
2. Listing [[lst:setup-oglot]] uses [[https://github.com/gav451/oglot#][oglot]] to enable using [[https://github.com/joaotavora/eglot][Eglot]] in =org-src-mode=
|
||||||
Julia and Python buffers.
|
Julia and Python buffers.
|
||||||
3. Listing [[lst:eglot-maybe-ensure]] starts [[https://github.com/joaotavora/eglot][Eglot]] in case of proper programming
|
3. Listing [[lst:cli-eglot-jl-setup]] shows how to setup [[https://github.com/non-Jedi/eglot-jl][eglot-jl]] from the command
|
||||||
|
line.
|
||||||
|
4. Listing [[lst:eglot-maybe-ensure]] starts [[https://github.com/joaotavora/eglot][Eglot]] in case of proper programming
|
||||||
modes and proper directory local variables (meaning in presence of a proper
|
modes and proper directory local variables (meaning in presence of a proper
|
||||||
file [[info:emacs#Directory Variables][.dir-locals.el]] in the root directory of any project using proper
|
file [[info:emacs#Directory Variables][.dir-locals.el]] in the root directory of any project using proper
|
||||||
programming modes).
|
programming modes).
|
||||||
4. Listing [[lst:whiten-black]] defines Emacs Lisp functions to undo (whiten) some
|
5. Listing [[lst:whiten-black]] defines Emacs Lisp functions to undo (whiten) some
|
||||||
output of [[https://black.readthedocs.io/en/stable/][Black]] after src_emacs-lisp[:results silent]{(org-babel-tangle)}.
|
output of [[https://black.readthedocs.io/en/stable/][Black]] after src_emacs-lisp[:results silent]{(org-babel-tangle)}.
|
||||||
|
|
||||||
#+caption[Ensure =eglot= installation with minimal setup]:
|
#+caption[Ensure =eglot= installation with minimal setup]:
|
||||||
@ -4752,6 +4754,16 @@ configuration:
|
|||||||
(setopt oglot-maybe-ensure-modes '(julia-mode python-mode)))
|
(setopt oglot-maybe-ensure-modes '(julia-mode python-mode)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+caption[Setup =eglot-jl= from the command line]:
|
||||||
|
#+caption: Setup =eglot-jl= from the command line.
|
||||||
|
#+name: lst:cli-eglot-jl-setup
|
||||||
|
#+begin_src shell :eval never
|
||||||
|
# Run this from the directory containing the local eglot-jl clone:
|
||||||
|
julia --project=eglot-jl/ eglot-jl/eglot-jl.jl
|
||||||
|
# The SymbolServer is ready caching dependencies when it displays:
|
||||||
|
# [ Info: Received new data from Julia Symbol Server.
|
||||||
|
#+end_src
|
||||||
|
|
||||||
#+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]:
|
#+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]:
|
||||||
#+caption: Start =eglot= in case of a proper =dir-local-variables-alist=.
|
#+caption: Start =eglot= in case of a proper =dir-local-variables-alist=.
|
||||||
#+name: lst:eglot-maybe-ensure
|
#+name: lst:eglot-maybe-ensure
|
||||||
@ -5942,6 +5954,7 @@ cat "$HOME/.julia/environments/v1.10/Project.toml"
|
|||||||
#+RESULTS: lst:list-julia-packages
|
#+RESULTS: lst:list-julia-packages
|
||||||
#+begin_src toml -n
|
#+begin_src toml -n
|
||||||
[deps]
|
[deps]
|
||||||
|
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
|
||||||
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
|
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
|
||||||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
|
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
|
||||||
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
|
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
|
||||||
|
Loading…
Reference in New Issue
Block a user