Cleanup some more the org section

master
Jacopo De Simoi 8 years ago
parent 4804c34a25
commit 4ce5e8e478
  1. 25
      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

Loading…
Cancel
Save