emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 3950195ce5ce7994af8f925247898a87cd5535ec
parent bf805e5ab3c979bcdd615761d5e85ab4191927af
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat, 28 Mar 2020 15:22:26 +0300

org-mode updates

Diffstat:
Minit.org | 41+++++++++++++++++++++++++++++------------
1 file changed, 29 insertions(+), 12 deletions(-)

diff --git a/init.org b/init.org @@ -259,7 +259,9 @@ do the job well for me. ** Org-mode Org mode is one of the biggest reasons I am using Emacs, and it is a must -for me. These are my configurations. Starting with the obvious here. +for me. These are my configurations. Starting with the obvious here. I am +currently trying to tweak portions of it from Bernt's configuration. See +the [[Attribution]] section. #+BEGIN_SRC emacs-lisp (use-package org @@ -292,8 +294,9 @@ I am quite serious on this vim stuff now. I want it everywhere. Now that we have initialized those packages, let's configure them some further. +*** Keybindings and default values + #+BEGIN_SRC emacs-lisp -;; Keybindings (global-set-key (kbd "C-c l") 'org-store-link) (global-set-key (kbd "C-c a") 'org-agenda) (global-set-key (kbd "C-c c") 'org-capture) @@ -303,27 +306,41 @@ further. (defvar org-default-notes-file) (setq - org-directory "~/.org/" + org-directory "~/Org/" org-agenda-include-diary t - org-default-notes-file "~/.notes.org" + org-default-notes-file "~/Org/refile.org" ) #+END_SRC *** Orgmode TODO configuration -I have set some additional TODO states. Those are: -- TODO :: For when I haven't started the job. -- STARTED :: For when I have started the item. -- FEEDBACK :: This is for when I am expecting feedback or I am reviewing the job. -- DONE :: No explanation necessary. Code below is written for adding more possible sequences depending on the project I am working on. #+BEGIN_SRC emacs-lisp (setq org-todo-keywords - '((sequence "TODO" "|" "DONE") - (sequence "TASK" "STARTED" "FEEDBACK" "|" "DONE")) -) + (quote ((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)") + (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING")))) + +(setq org-todo-keyword-faces + (quote (("TODO" :foreground "orange red" :weight bold) + ("NEXT" :foreground "cyan" :weight bold) + ("DONE" :foreground "spring green" :weight bold) + ("WAITING" :foreground "orange" :weight bold) + ("HOLD" :foreground "hot pink" :weight bold) + ("CANCELLED" :foreground "spring green" :weight bold) + ("MEETING" :foreground "spring green" :weight bold) + ("PHONE" :foreground "spring green" :weight bold)))) + +(setq org-use-fast-todo-selection t) +#+END_SRC +*** Org-capture +#+BEGIN_SRC emacs-lisp +(setq org-capture-templates + (quote (("t" "todo" entry (file "~/Org/refile.org") + "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) + ("n" "note" entry (file "~/Org/refile.org") + "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)))) #+END_SRC ** Magit