Skip navigation

Tag Archives: org-mode

A probably ridiculous thing to do, I know, but in hope of getting valuable help for you elisp expert guys out there (I’m all ears) I’m going ahead to show the unusual path I followed to simply bind the org-cicle invoked with an argument 64 (C-u C-u C-u)

(This is also a litle probe of how magnanimously flexible the emacs lisp environment can actually be to allow us to record processes we want automated for later reuse)
1) I started to record the macro “C-(
2) made the call to org-cycle to reveal-all by previously pressing C-u three times “C-u C-u C-u M-x org-cycle
3) stopped recording macro “C-)
4) did “M-x kmacro-name-last-macro” (which provides the lambda form of the last created macro)
5) ran “M-x insert-kbd-macro
6) assigned a key binding to it (global-set-key(kbd “C-+”) ‘my-org-reveal-all)

(fset 'my-org-reveal-all
(lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([21 21 21 134217816 111 114 103 45 99 121 99 108 101 return] 0 "%d")) arg)))

(global-set-key(kbd “C-+”) ‘my-org-reveal-all)

I had an encoding issue that was bugging me inside the remember-data-file. I don’t know exactly how some latin-1 characters copy-pasted there ended up being saved as raw-text and were shown like non-ASCII characters (so a multibyte characters like “é” will appear with it’s escaped octal code “303\251” )

I tried at first setting the file’s encoding system with the tag “-*-coding: utf-8 -*-“, though it seemed not sufficient. The raw characters remained there and I soon grew tired of having to type in: “utf-8” at the prompt to select the encoding every time I needed to save the file.

Today searching the manual found here one easy cure on the command “recode-region” which allows to convert the text that was decoded with the wrong coding system.

Really all it took after marking the whole buffer (C-x h) was doing: “M-x recode-region RET” “Text was was really in: utf-8” “But was interpreted as: raw-text”

That was it!, the drag is over, I’m back to storing notes quickly doing just C-c r and C-c C-x with the worthy remember mode.

My quick guide for checkboxes
I like them but can easily forget about the simplest detail of their creation and use:

  • to create checkboxes use “[0/0]” or “[0%]” ( both can also be together in any order)
  • doing “C-#” recalculates the counts (updates the checkbox statistics)
  • add a “- [ ]” (dash space left-braket space right-bracket) at the beginning to create a checkbox item
  • new items can be created from there doing “S-M RET” (before, or after depending on whether cursor was at the beginning or end of item)
  • doing “C-c C-c” you can toggle check marck on/off
  • with “C-x-b” toggle checkbox at point, which according to the online manual works like the following:
    • If there is an active region, toggle the first checkbox in the region and set all remaining boxes to the same status as the first. If you want to toggle all boxes in the region independently, use a prefix argument.
    • If the cursor is in a headline, toggle checkboxes in the region between this headline and the next (so not the entire subtree).
    • If there is no active region, just toggle the checkbox at point.
    • ( this is found at )
** My quick guide for checkboxes [2/3] [66%]
This is a small sample
- [ ] item 1
- [X] item 2
- [X] item 3 which containes 4 sub items
    * sub item 3.1
    * sub item 3.2
    * sub item 3.3
    * ( see more at )