Two Ways To Share Static Key Pair Values Across Different Tangled Source Files With Org-Mode Literate Programming

This post asks about how you can share static key pair values across different tangled source files. The following are my two tries.

Continue reading “Two Ways To Share Static Key Pair Values Across Different Tangled Source Files With Org-Mode Literate Programming”

The Narmada River: From East To West

Via Wikipedia:

The Narmada, also called the Rewa, is a river in central India and the fifth longest river in the Indian subcontinent. It is the third longest river that flows entirely within India, after the Godavari, and the Krishna. It is also known as “Life Line of Madhya Pradesh” for its huge contribution to the state of Madhya Pradesh in many ways. It forms the traditional boundary between North India and South India and flows westwards over a length of 1,312 km (815.2 mi) before draining through the Gulf of Khambhat into the Arabian Sea, 30 km (18.6 mi) west of Bharuch city of Gujarat.[3]

It is one of only three major rivers in peninsular India that run from east to west (longest west flowing river), along with the Tapti River and the Mahi River. It is one of the rivers in India that flows in a rift valley, flowing west between the Satpura and Vindhya ranges.

Remove Every Source Block Results

Sometimes you accidentally evaluate your entire Org-Mode document resulting in result blocks everywhere. Maybe you can’t easily revert the change so you are stuck with a ton of code you don’t need. Here is a function to remove all of your result blocks. It is pretty good for documents that you probably never wanted to evaluate in the first place:

(defconst help/org-special-pre "^\s*#[+]")
(defun help/org-2every-src-block (fn)
  "Visit every Source-Block and evaluate `FN'."
  (interactive)
  (save-excursion
    (goto-char (point-min))
    (let ((case-fold-search t))
      (while (re-search-forward (concat help/org-special-pre "BEGIN_SRC") nil t)
        (let ((element (org-element-at-point)))
          (when (eq (org-element-type element) 'src-block)
            (funcall fn element)))))
    (save-buffer)))
(define-key org-mode-map (kbd "s-]") (lambda () (interactive)
                                       (help/org-2every-src-block
                                        'org-babel-remove-result)))

(Screencast) Building A Little UI To Manage Buffers

(use-package eyebrowse
  :ensure t
  :config
  (setq eyebrowse-wrap-around t)
  (eyebrowse-mode t)
  (defhydra help/hydra-left-side/eyebrowse (:color blue :hint nil)
    "
current eyebrowse slot: %(eyebrowse--get 'current-slot)
 _j_ previous _k_ last _l_ next _u_ close _i_ choose _o_ rename _q_ quit
   _a_ 00 _s_ 01 _d_ 02 _f_ 03 _g_ 04 _z_ 05 _x_ 06 _c_ 07 _v_ 08 _b_ 09"
    ("j" #'eyebrowse-prev-window-config :exit nil)
    ("k" #'eyebrowse-last-window-config)
    ("l" #'eyebrowse-next-window-config :exit nil)
    ("u" #'eyebrowse-close-window-config :exit nil)
    ("i" #'eyebrowse-switch-to-window-config)
    ("o" #'eyebrowse-rename-window-config :exit nil)
    ("q" nil)
    ("a" #'eyebrowse-switch-to-window-config-0)
    ("s" #'eyebrowse-switch-to-window-config-1)
    ("d" #'eyebrowse-switch-to-window-config-2)
    ("f" #'eyebrowse-switch-to-window-config-3)
    ("g" #'eyebrowse-switch-to-window-config-4)
    ("z" #'eyebrowse-switch-to-window-config-5)
    ("x" #'eyebrowse-switch-to-window-config-6)
    ("c" #'eyebrowse-switch-to-window-config-7)
    ("v" #'eyebrowse-switch-to-window-config-8)
    ("b" #'eyebrowse-switch-to-window-config-9))
  (global-set-key (kbd "C-M-e") #'help/hydra-left-side/eyebrowse/body))

Passion & Compassion. Action & Compaction.

Your passions are the things that you know in your heart that every one ought to experience. The feeling inside your heart when you find humanity without them, where it drives you to act, inspire and serve them to achieve it themselves is compassion. Compassion is passion’s companion.

Action is everything. Action is the difference between trying and not trying, so at least do something. Action is the nature of this universe, it’s physics and our responsibility to the world. Compaction takes your values and beliefs, distills them to their most simple and essential form. It is the crucible that takes you from undecided to emboldened to not only believe but also to act with complete conviction. Compaction is actions companion. Compaction illuminates your core beliefs so what you share is true. So now emboldened by your heart and your conscience.