My org-agenda view is made out of 5-6 files. Can one define a different face (mainly color) per file?
I don't understand lisp, but the following worked for me. It does not change the color of the complete entries, but it changes the color in which the file name (or rather: category name) preceding each entry is displayed.
Add a category name to each of your agenda files, e.g.
#+CATEGORY: Homein one file and
#+CATEGORY: Workin another. It's conceivable that this step is completey unnecessary and that you can continue using file names.
Add the following to your
(add-hook 'org-finalize-agenda-hook (lambda () (save-excursion (color-org-header "Home:" "azure" "black") (color-org-header "Work:" "RosyBrown1" "red")))) (defun color-org-header (tag backcolor forecolor) "" (interactive) (goto-char (point-min)) (while (re-search-forward tag nil t) (add-text-properties (match-beginning 0) (+ (match-beginning 0) 10) `(face (:background, backcolor, :foreground, forecolor)))))
Customize the lines of the form
(color-org-header "Home:" "azure" "black")to your liking. Here's a list of predefined colors.