an org mode day
January 12, 2021
about title
- spend a lot of time learn org mode advanced techniques. tired but feel gain something.
feeling
- when I play skull girls, I spend a lot of time just press without thinking, even without intention. It comes out that I have little progress in game.
- But after a long time, I wake up (or something like this) and I practice with intention and patience. Then I feel growth in power.
- It means that A LOT OF TIME is needed to get into a normal study state
- I should continue to keep the habit of study and thinking so that I can escape chaos status quickly
- another thing. it happens today, I feel not happy no matter what reason. After a time of playing game with that bad mood, I recovered.
- So maybe it means stay with bad mood, it will go away after sometime. But don’t do something addictive.
spacemacs command
- org-store-link:
space a o l
- org-insert-link:
space a o i l | , i l
org mode task status
- in emacs, the built-in task status are TODO and DONE. If want more, can define them by self.
- example
#+SEQ_TODO: REPORT(r) BUG(b) KNOWNCAUSE(k) | FIXED(f)
#+SEQ_TODO: TODO(T!) | DONE(D@)3 CANCELED(C@/!)
- each
SEQ_TODO
defines one status sequence - from official document,
SEQ_TODO
can by replaced byTODO
. - can define multiple status sequence
- status is seprated by space
- can add more functions in side ()
- char, will represents as shortcuts
!
, insert timestamp when shift to this status@
, require input information when switched to this status@/!
, means both|
is used to seprate unfinished status from finished statusorg-todo-keywords
is a configurable variable to set to make global effect- from link: https://www.cnblogs.com/holbrook/archive/2012/04/14/2447754.html#sec-2
org mode LOGBOOK
-
when taking a lot of notes, you might want to get the notes out of the way into a drawer. Customize the variable
org-log-into-drawer
to get this behavior – the recommended drawer is calledLOGBOOK
. You can also overrule the settings of this variable for a subtree by setting aLOG_INTO_DRAWER
property. -
from link: https://orgmode.org/manual/Tracking-TODO-state-changes.html
netcat send files never ends
- in Ubuntu, send files with an additional
-N
:nc -N ip port < file
- it is because netcat has different implementation, and in some implementation, the file EOF will not be treated as sending’s end. And this cause it hang a lot of time and never ends.
- from link: https://serverfault.com/questions/512722/how-to-automatically-close-netcat-connection-after-data-is-sent
the workflow of org mode
- open any buffer or just a scatch buffer
- start to collect things and make plan
- they all be captured into INBOX
- when all things are captured, browse INBOX and refile the real task into PLAYGROUND
- in PLAYGROUND, give todo items more detail, such as schedule time, small task, information related and so on
- Then, open DAILY-PLAN, and fill in the daily-plan template with tasks in PLAYGROUND
- Finally, according to DAILY-PLAN, finish them one by one. (Meanwhile, fill in more details and record time)
save evil macro
- example: paper-title-to-todo:
(fset 'paper-title-to-todo (kmacro-lambda-form [?j ?y ?y ?, ?c ?r ?p ?p ?i backspace backspace backspace backspace backspace escape ?, ?,] 0 "%d"))
org clock table time range
- The time block to consider. This block is specified either absolutely, or relative to the current time and may be any of these formats:
‘2007-12-31’ New year eve 2007
‘2007-12’ December 2007
‘2007-W50’ ISO-week 50 in 2007
‘2007-Q2’ 2nd quarter in 2007
‘2007’ the year 2007
‘today’, ‘yesterday’, ‘today-N’ a relative day
‘thisweek’, ‘lastweek’, ‘thisweek-N’ a relative week
‘thismonth’, ‘lastmonth’, ‘thismonth-N’ a relative month
‘thisyear’, ‘lastyear’, ‘thisyear-N’ a relative year
‘untilnow’78 all clocked time ever