From 4ce5e8e4780d7209cde0201426c9f581c8698a24 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Fri, 30 Mar 2018 00:21:03 -0400 Subject: [PATCH] Cleanup some more the org section --- global.org | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/global.org b/global.org index c3c5e74..d4fa0cd 100644 --- a/global.org +++ b/global.org @@ -405,9 +405,14 @@ (tags-todo "20m"))))) #+END_SRC *** Capture - #+BEGIN_SRC emacs-lisp + Set default keybinding + #+BEGIN_SRC emacs-lisp + (global-set-key (kbd "C-c c") 'org-capture) + #+END_SRC + This is my capture template: it needs to be revised as I really do not use + The Idea, journal and break entry + #+BEGIN_SRC emacs-lisp (setq org-default-notes-file "~/org/notes.org") - (global-set-key (kbd "C-c c") 'org-capture) (setq org-capture-templates '(("t" "TODO today" entry (file+headline "~/org/notes.org" "Tasks") "* TODO %?\n SCHEDULED: %t" :clock-in t :clock-resume t) @@ -425,10 +430,19 @@ "* DONE mailto:%?") ("r" "Reply to" entry (file+headline "~/org/notes.org" "E-mails") "* DONE mailto:%?"))) - + #+END_SRC +*** Source blocks + Add template for a source block in emacs-lisp. This is useful for writing the emacs init file in literate form + #+BEGIN_SRC emacs-lisp (add-to-list 'org-structure-template-alist '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC")) - + #+END_SRC + Fontify src blocks + #+BEGIN_SRC emacs-lisp + (setq org-src-fontify-natively t) + #+END_SRC +*** Clocking + #+BEGIN_SRC emacs-lisp ;; Separate drawers for clocking and logs (setq org-drawers (quote ("PROPERTIES" "CLOCKBOOK"))) ;; Save clock data and state changes and notes in the CLOCK drawer @@ -438,9 +452,6 @@ ;; Clock out when moving task to a done state (setq org-clock-out-when-done t) - - (setq org-src-fontify-natively t) - (setq org-clock-persist 'history) (org-clock-persistence-insinuate) #+END_SRC