|
13 | 13 | - [[#install-polymode-in-emacs][install polymode in Emacs]]
|
14 | 14 | - [[#how-to-insert-code-block-quickly][how to insert code block quickly]]
|
15 | 15 | - [[#a-new-code-block-header-argument-load][a new code block header argument ~load~]]
|
16 |
| - - [[#reference-named-blocks-as-global-variables][Reference named blocks as global variables]] |
| 16 | + - [[#reference-named-blocks-as-global-parameters][Reference named blocks as global parameters]] |
17 | 17 | - [[#how-to-debug-org-file-in-lispworks-ide][How to debug org file in LispWorks IDE]]
|
18 | 18 | - [[#how-to-write-user-initialization-file-with-literate-programming-style][How to write user initialization file with literate programming style]]
|
19 | 19 | - [[#how-to-include-org-codes-with-asdf-package-inferred-system-extension][how to include org codes with ASDF package-inferred-system extension]]
|
@@ -72,15 +72,15 @@ The following Emacs Lisp scripts in .emacs will install it.
|
72 | 72 | Please have a look of the section [[https://github.com/jingtaozf/literate-elisp/blob/master/literate-elisp.org#how-to-insert-code-block-in-org-file][How to insert code block in org file]] in library [[https://github.com/jingtaozf/literate-elisp][literate-elisp]].
|
73 | 73 | ** a new code block header argument ~load~
|
74 | 74 | Please have a look of the section [[./literate-lisp.org#new-defined-header-argument-load][new defined header argument load]] in [[./literate-lisp.org]].
|
75 |
| -** Reference named blocks as global variables |
| 75 | +** Reference named blocks as global parameters |
76 | 76 | If a [[https://orgmode.org/manual/Blocks.html][block]] has a named for it, that is, with a =#+NAME:= before it like this:
|
77 | 77 | #+begin_example
|
78 | 78 | ,#+NAME: js-demo-code
|
79 | 79 | ,#+BEGIN_SRC js
|
80 | 80 | document.getElementById("demo").innerHTML = "Hello JavaScript";
|
81 | 81 | ,#+END_SRC
|
82 | 82 | #+end_example
|
83 |
| -Then after loading, a global variable =js-demo-code= will contain the string in above block. |
| 83 | +Then after loading, a global parameter =js-demo-code= will contain the string in above block. |
84 | 84 |
|
85 | 85 | It is more friendly than write this string in lisp directly,
|
86 | 86 | because =org mode= can provide syntax for it and =poly mode= can even enable us edit this code block in =js-mode=.
|
|
0 commit comments