Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add custom markers to emacs org-mode

Tags:

emacs

org-mode

I'm using emacs org-mode for various purposes. Most common functionality is to mark my tasks with special tags TODO & DONE. Is there a way to add custom tags (e.g IN_PROGRESS) and highlight it with separate color?

Also, would be good, if this tag roll in the same buffer as TODO and DONE so I can switch between them by using the same hotkeys.

like image 955
mishadoff Avatar asked Oct 03 '12 11:10

mishadoff


2 Answers

I use the following in my init.el, which sets additional task statuses and their styles for all org files:

(setq org-todo-keyword-faces
      '(
        ("NOT-TODO" . (:foreground "blue" :weight bold))
        ("IF-TIME" . (:foreground "yellow" :weight bold))
        ("NOT-REPRO" . (:foreground "purple" :weight bold))
        ))

(setq org-todo-keywords
      '((sequence "TODO" "NOT-TODO" "NOT-REPRO" "IF-TIME" "DONE")))
like image 94
harpo Avatar answered Sep 21 '22 04:09

harpo


You can do as this in the beginning of the file:

#+TODO: TODO IN-PROGRESS WAITING DONE

Press C-c C-c on that line to refresh the setup (not needed for subsequent loads of the file), and everything should be jolly.

As explained here.

like image 15
user1716883 Avatar answered Sep 22 '22 04:09

user1716883