File: property-inheritance.org

package info (click to toggle)
org-mode 9.1.14%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,884 kB
  • sloc: lisp: 142,310; xml: 1,055; makefile: 197; ansic: 14; sh: 5
file content (25 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#+property: header-args :var  foo=1
#+property: header-args+ :var bar=2

#+begin_src emacs-lisp
  (+ foo bar)
#+end_src

* overwriting a file-wide property
  :PROPERTIES:
  :header-args: :var foo=7
  :END:

#+begin_src emacs-lisp
  foo
#+end_src

* appending to a file-wide property
  :PROPERTIES:
  :header-args+: :var baz=3
  :END:

#+begin_src emacs-lisp
  (+ foo bar baz)
#+end_src