From: tfheen Date: Thu, 13 Mar 2008 19:11:28 +0000 (+0000) Subject: Add stuff for home and work agendas and make sure tags are right-aligned X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1accc97b4e19729b6ede38b1b4542f8c0f4d8c;p=dotfiles Add stuff for home and work agendas and make sure tags are right-aligned git-svn-id: file:///svn/tfheen/trunk/dotfiles@1159 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/emacs b/emacs index 8d497bb..c380000 100644 --- a/emacs +++ b/emacs @@ -335,3 +335,15 @@ (require 'org) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (global-set-key (kbd "C-c a") 'org-agenda) +(setq org-agenda-custom-commands + '(("w" todo + #("WAITING" 0 7 + (face org-warning))) + ("h" tags-todo "hjemme") + ("j" tags-todo "jobb"))) +(setq org-tags-column (* -1 (- (frame-width) 10)) + org-agenda-align-tags-to-column (- (frame-width) 10)) + +(add-to-list 'window-size-change-functions + (lambda (frame) (setq org-tags-column (* -1 (- (frame-width) 10)) + org-agenda-align-tags-to-column (- (frame-width) 10))))