...das minhas cousas

 


Calling noweb block from other .org file

  • the file with the noweb block, ‘noweb.org’

    #+name: gnuplot_zeroaxis
    #+begin_src gnuplot
      set xzeroaxis
      set yzeroaxis
    #+end_src
    
  • the file calling the noweb block

    #+begin_src gnuplot :noweb yes :file somefile
      <<noweb.org:gnuplot_zeroaxis()>>
      plot x**3
    #+end_src
    

Plain lists folded when cycle

Global

(setq org-cycle-include-plain-lists 'integrate)

Per file

# -*- org-cycle-include-plain-lists: integrate; -*-

Error when trying to edit in a invisible region

(setq org-catch-invisible-edits 'error)

Switching a sibling to todo-state(KEYWORD) when done

Config

(require 'org-depend)

Org property

:PROPERTIES:
:TRIGGER: chain-siblings(STARTED)
:END:

Example

# before 'first' headline is DONE
* STARTED first
  :PROPERTIES:
  :TRIGGER: chain-siblings(STARTED)
  :END:
* TODO second
# after 'first' headline is DONE
* DONE first
  :PROPERTIES:
  :TRIGGER: chain-siblings(STARTED)
  :END:
* STARTED second
  :PROPERTIES:
  :TRIGGER:  chain-siblings(STARTED)
  :END:

Repeated tasks

From the Org Manual

  • To mark a task with a repeater as DONE, use ‘C– 1 C-c C-t’, i.e., ‘org-todo’ with a numeric prefix argument of ‘-1’.
  • There are three types of interval repeaters. They all are useful but slightly different.
  • Repeaters:
    • ‘+’

      • The date shifts the exact interval after the last time has been DONE, not now.
      • If the repeat interval is +1d, and you don’t have mark the entry as DONE in the last three days and you mark it as DONE, the next DONE will not be tomorrow, it will be two days ago.
      • Example:
        • Today: <2021-08-27 Ven>

        • Before marked as DONE:

          ​* TODO Do something awesome
          DEADLINE: <2021-08-23 Lun +1d>
          
        • After marked as DONE today:

          ​* TODO Do something awesome
          DEADLINE: <2021-08-24 Mar +1d>
          
    • ‘++’

      • The date shifts to the next interval after today. Not from today but from original date.
      • If the repeat interval(++1w) starts a monday a you marked as DONE the Friday, the next date will be the next monday not the next friday.
      • Example:
        • Today: <2021-08-27 Ven>

        • Before marked as DONE:

          ​* TODO Do something awesome
          DEADLINE: <2021-08-23 Lun ++1w>
          
        • After marked as DONE today:

          ​* TODO Do something awesome
          DEADLINE: <2021-08-30 Lun ++1w>
          
    • ‘.+’

      • The date shifts to the next interval after today the exact time from today.
      • Example:
        • Today: <2021-08-27 Ven>

        • Before marked as DONE:

          ​* TODO Do something awesome
          DEADLINE: <2021-08-23 Lun .+1w>
          
        • After marked as DONE today:

          ​* TODO Do something awesome
          DEADLINE: <2021-09-03 Ven .+1w>