     ;;                    tag and property drawers
     ;; showeverything   - same as above but without exceptions
     (setq org-startup-folded 'showall)
+
     ;; http://orgmode.org/manual/Clean-view.html
-    ;; Enable `org-indent-mode' on org startup
-    (setq org-startup-indented t)
-
-    (setq org-log-done 'timestamp) ; Insert only timestamp when closing an org TODO item
-    ;; (setq org-log-done 'note) ; Insert timestamp and note when closing an org TODO item
+    (setq org-startup-indented t)       ;Enable `org-indent-mode' on Org startup
+    (with-eval-after-load 'org-indent
+      (setq org-indent-indentation-per-level 1)) ;Default = 2
+
+    (setq org-log-done 'timestamp) ;Insert only timestamp when closing an Org TODO item
+    ;; (setq org-log-done 'note) ;Insert timestamp and note when closing an Org TODO item
     ;; http://orgmode.org/manual/Closing-items.html
     (setq org-todo-keywords '((sequence "TODO" "SOMEDAY" "CANCELED" "DONE")))
     (setq org-todo-keyword-faces
           '(("TODO"     . org-todo)
             ("SOMEDAY"  . (:foreground "black" :background "#FFEF9F"))
             ("CANCELED" . (:foreground "#94BFF3" :weight bold :strike-through t))
-            ("DONE"     . (:foreground "black" :background "#91ba31"))
-            ))
+            ("DONE"     . (:foreground "black" :background "#91ba31"))))
     ;; Block entries from changing state to DONE while they have children
     ;; that are not DONE - http://orgmode.org/manual/TODO-dependencies.html
     (setq org-enforce-todo-dependencies t)
 
     ;; http://emacs.stackexchange.com/a/17513/115
-    (setq org-special-ctrl-a/e '(t ; For C-a. Possible values: nil, t, 'reverse
-                                 . t)) ; For C-e. Possible values: nil, t, 'reverse
-
-    (setq org-catch-invisible-edits 'smart) ; http://emacs.stackexchange.com/a/2091/115
-    (setq org-indent-indentation-per-level 1) ; default = 2
+    (setq org-special-ctrl-a/e '(t   ;For C-a. Possible values: nil, t, 'reverse
+                                 . t)) ;For C-e. Possible values: nil, t, 'reverse
+
+    (setq org-catch-invisible-edits 'smart) ;http://emacs.stackexchange.com/a/2091/115
 
     ;; Number of empty lines needed to keep an empty line between collapsed trees.
     ;; If you leave an empty line between the end of a subtree and the following
     ;; headline, this empty line is hidden when the subtree is folded.
     ;; Org-mode will leave (exactly) one empty line visible if the number of
     ;; empty lines is equal or larger to the number given in this variable.
-    (setq org-cycle-separator-lines 2) ; default = 2
-
-    ;; Prevent renumbering/sorting footnotes when a footnote is added/removed.
-    ;; Doing so would create a big diff in an org file containing lot of
-    ;; footnotes even if only one footnote was added/removed.
-    (setq org-footnote-auto-adjust nil) ; `'sort' - only sort
-                                        ; `'renumber' - only renumber
-                                        ; `t' - sort and renumber
-                                        ; `nil' - do nothing (default)
-
-    ;; Make firefox the default web browser for applications like viewing
-    ;; an html file exported from org ( C-c C-e h o )
-    (when (executable-find "firefox")
-      (add-to-list 'org-file-apps '("\\.x?html\\'" . "firefox %s")))
-
-    ;; Do not add the default indentation of 2 spaces when exiting the *Org Src*
-    ;; buffer (the buffer you get when you do «C-c '» while in a block like
-    ;; #+BEGIN_SRC
-    (setq org-edit-src-content-indentation 0)
-
-    ;; Do NOT try to auto-evaluate entered text as formula when I begin a field's
-    ;; content with "=" e.g. |=123=|. More often than not, I use the "=" to
-    ;; simply format that field text as verbatim. As now the below variable is
-    ;; set to nil, formula will not be automatically evaluated when hitting TAB.
-    ;; But you can still using ‘C-c =’ to evaluate it manually when needed.
-    (setq org-table-formula-evaluate-inline nil) ; default = t
+    (setq org-cycle-separator-lines 2)  ;Default = 2
+
+    (with-eval-after-load 'org-footnote
+      ;; Prevent renumbering/sorting footnotes when a footnote is added/removed.
+      ;; Doing so would create a big diff in an Org file containing lot of
+      ;; footnotes even if only one footnote was added/removed.
+      (setq org-footnote-auto-adjust nil)) ;`'sort' - only sort
+                                        ;`'renumber' - only renumber
+                                        ;`t' - sort and renumber
+                                        ;`nil' - do nothing (default)
 
     ;; ;; The default value of `org-highlight-links' contains `plain' too.
     ;; ;; - "plain" links are links in normal text, no whitespace, like http://foo.com.

;;  - Move the minted.sty to your $TEXMF/tex/latex/commonstuff folder.
;;  - Do mkdir -p ~/texmf/tex/latex/commonstuff if that folder hierarchy doesn't exist
;;  - Do "mktexlsr" to refresh the sty database
;;  - Generate pdf from the org exported tex by "pdflatex -shell-escape FILE.tex"

;; Sources for org > tex > pdf conversion:
;;  - http://nakkaya.com/2010/09/07/writing-papers-using-org-mode/
;;  - http://mirrors.ctan.org/macros/latex/contrib/minted/minted.pdf

;; To have an org document auto update the #+DATE: keyword during exports, use:
;;   #+DATE: {{{time(%b %d %Y\, %a)}}}
;; The time format here can be anything as documented in `format-time-string' fn.



    ;; http://emacs.stackexchange.com/a/10712/115
    (defun modi/org-delete-link ()
      "Replace an Org link of the format [[LINK][DESCRIPTION]] with DESCRIPTION.
If the link is of the format [[LINK]], delete the whole Org link.

In both the cases, save the LINK to the kill-ring.

Execute this command while the point is on or after the hyper-linked Org link."
      (interactive)
      (when (derived-mode-p 'org-mode)
        (let ((search-invisible t) start end)
