]> err.no Git - dotfiles/commitdiff
Add stuff for home and work agendas and make sure tags are right-aligned
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Thu, 13 Mar 2008 19:11:28 +0000 (19:11 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Thu, 13 Mar 2008 19:11:28 +0000 (19:11 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1159 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

emacs

diff --git a/emacs b/emacs
index 8d497bb7b6a5d96b480005faa5b06490c279be19..c380000d24b8cd586a4fb88bb03aa5406d7355c6 100644 (file)
--- a/emacs
+++ b/emacs
 (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))))