Re: [Orgmode] Re: how to change the set of agenda org files between custom agenda commands
On Sep 24, 2008, at 11:25 PM, Rainer Stengele wrote: Dan Griswold wrote: Rainer Stengele <[EMAIL PROTECTED]> writes: I am struggling to switch the set of used agenda org files between different custom agenda commands. I tried something like (setq org-agenda-custom-commands '( ("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...") ("ka" tags-todo "CATEGORY=\"ADMIN\"") ("kP" tags-todo "CATEGORY=\"PRIVAT\"" ((org-agenda-files (quote ("~/org/PRIVAT/PRIVAT.org") Playing with customize I came up with this possibility: (setq org-agenda-custom-commands '( ("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...") ("ka" tags-todo "CATEGORY=\"ADMIN\"") ("kP" tags-todo "CATEGORY=\"PRIVAT\"" ((org-agenda-files '("~/org/PRIVAT/PRIVAT.org")) Will that do it? Dan Dan, thank you. I somehow does and doesn't. After using the command I get the "private" entries. After using another command analogous to this it seems I cannot reset the org-agenda-files variable. Looks like it only adds files to it? I played around a lot but could not get it to function as wanted. Hi Rainer, Dan I just tested this, with (setq org-agenda-custom-commands '(("ka" "aaa" alltodo "" ((org-agenda-files '("~/lib/emacs/work/org-mode/test/a.org" ("kb" "bbb" alltodo "" ((org-agenda-files '("~/lib/emacs/work/org-mode/test/b.org")) with small files a.org and b.org containing just one TODO entry, and of course my full suite of TODO entries available with `C-c a t'. And then I do C-c a t C-c a a C-c a b C-c a t and it all works just fine, going back end forth between these in any sequence. Anyway, the syntax is quite complex. I wonder if some more examples for changing agenda files when executing custom commands would be helpful. Anyone else who wants to see Agenden at home from different sets of agenda files? I think a good way is also to keep the list of agenda files in a file, like ~/.agenda_files_home and ~/.agenda_files_work. The you can have different sets of files, and switch by making org- agenda-files (defun org-my-toggle-agenda-file-set () (interactive) (if (equal org-agenda-files "~/.agenda_files_work") (setq org-agenda-files "~/.agenda_files_home") (setq org-agenda-files "~/.agenda_files_work")) (message "Using %s" org-agenda-files)) - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: how to change the set of agenda org files between custom agenda commands
Carsten Dominik wrote: On Sep 24, 2008, at 11:25 PM, Rainer Stengele wrote: Dan Griswold wrote: Rainer Stengele <[EMAIL PROTECTED]> writes: I am struggling to switch the set of used agenda org files between different custom agenda commands. I tried something like (setq org-agenda-custom-commands '( ("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...") ("ka" tags-todo "CATEGORY=\"ADMIN\"") ("kP" tags-todo "CATEGORY=\"PRIVAT\"" ((org-agenda-files (quote ("~/org/PRIVAT/PRIVAT.org") Playing with customize I came up with this possibility: (setq org-agenda-custom-commands '( ("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...") ("ka" tags-todo "CATEGORY=\"ADMIN\"") ("kP" tags-todo "CATEGORY=\"PRIVAT\"" ((org-agenda-files '("~/org/PRIVAT/PRIVAT.org")) Will that do it? Dan Dan, thank you. I somehow does and doesn't. After using the command I get the "private" entries. After using another command analogous to this it seems I cannot reset the org-agenda-files variable. Looks like it only adds files to it? I played around a lot but could not get it to function as wanted. Hi Rainer, Dan I just tested this, with (setq org-agenda-custom-commands '(("ka" "aaa" alltodo "" ((org-agenda-files '("~/lib/emacs/work/org-mode/test/a.org" ("kb" "bbb" alltodo "" ((org-agenda-files '("~/lib/emacs/work/org-mode/test/b.org")) with small files a.org and b.org containing just one TODO entry, and of course my full suite of TODO entries available with `C-c a t'. And then I do C-c a t C-c a a C-c a b C-c a t and it all works just fine, going back end forth between these in any sequence. Anyway, the syntax is quite complex. I wonder if some more examples for changing agenda files when executing custom commands would be helpful. Anyone else who wants to see Agenden at home from different sets of agenda files? I think a good way is also to keep the list of agenda files in a file, like ~/.agenda_files_home and ~/.agenda_files_work. The you can have different sets of files, and switch by making org-agenda-files (defun org-my-toggle-agenda-file-set () (interactive) (if (equal org-agenda-files "~/.agenda_files_work") (setq org-agenda-files "~/.agenda_files_home") (setq org-agenda-files "~/.agenda_files_work")) (message "Using %s" org-agenda-files)) - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode Hi all, I found the problem. I used "org-agenda-directory" instead of org-agenda-files. Not recognising that this variable doesn't seem to exist (did it ever exist?) I assumed I can use it to indicate the org files folder. With org-agenda-files everything works perfectly. I now have about 48 custom commands (partly of course hierarchical) and with dynamically changing the set of org files I really feel I have control over my todos! I am very happy with org! Thank you both! Rainer ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
RE: [Orgmode] OSD alerts for appointment reminders (+ erc hook to useOSD)
Richard Riley wrote: > I thought some of you linux users might like this - use > gnome-osd-client to put an on screen reminder of your looming > appointments. In a similar vein, I've coded something for Windows. It's an interactive function currently called "my-org-update-desktop-from-agenda". It takes the current week's agenda view and sets it as the desktop's wallpaper. Not an alert, but it keeps your workload forever in front of you. It needs a couple of functions defined in .emacs and a windows executable (90KB) that I've written which updates the desktop wallpaper from an html file. The wallpaper will look exactly the same as the agenda view you'd normally see within org-mode. It's trivial to adjust one of the functions if you prefer more/fewer days than 7 displayed. Only tested on the setup quoted in sig. Anyone who'd like a bundled copy of the required bits, just drop me an email: chris[at]amlog[dot]co[dot]uk. Off-list might be best. -- Chris Randle Windows XP SP3 - GNU Emacs 22.1.1 - Org-mode 6.07b ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Possible bug in task breakdown recounting, narrowing problem from agenda or sparse tree?
In an org file that looks like this: #+STARTUP: odd #+STARTUP: hidestars #+TAGS: :meta:test: #+CATEGORY: Test * PROJECT [0/5] Made up of several todo's *** TODO first *** TODO second *** TODO third *** TODO fourth *** TODO fifth And with my todo keywords looking like this: (setq org-todo-keywords '( (sequence "INBOX(i)" "TICKLER(t!)" "|" "FILE(f@)" "CANCELED(k@)") (sequence "TODO" "WAITING" "VERIFY" "|" "DONE" "REASSIGNED") (sequence "DAILY(d!)" "|" "DONEDLY" "UNSCHEDDLY(D@)") (sequence "WEEKLY(e!)" "|" "DONEWKLY" "UNSCHEDWKLY(E@)") (sequence "MONTHLY(m!)" "|" "DONEMNTHLY" "UNSCHEDMNTHLY(M@)") (sequence "APPT" "RESCHEDULE(s@)" "|" "APPTPAST" "APPTCANCELED(n@)") (sequence "REQUEST(r!)" "REQWAITING(w@/!)" "REQVERIFY(v)" "|" "REQCLOSED(c!)" "REQREASSIGNED(a@)") (sequence "PROJECT(P!)" "PROJWAITING(W@/!)" "PROJVERIFY(V)" "|" "PROJCLOSED(C!)" "PROJREASSIGNED(A@)") )) According to (info "(org)Breaking down tasks") marking one of these as one of the DONE states (in this sequence it would be either "DONE" or "REASSIGNED") should change the PROJECT breakdown to [1/5]. If I am in the buffer with that org file, it's completely unfolded, and I do it, that's the effect I get. However, if: (a) the outline of that project is partially or completely folded to begin with, and (b) I change the TODO to DONE in the Agenda buffer, it seems to narrow around that TODO item, and the breakdown becomes [0/1] or some smaller number than the actual number of subtasks under the project. I just tried it with a sparse tree that only unfolded to display the third TODO item, and the same thing happened, so I guess it's probably something to do with the way the sparse tree works with folding. I'm running org-mode 6.07b downloaded from the website. Sorry if this is a known problem; I didn't see it on the "bugs" page in the info file. -- Charles Sebold http://merbc.invigorated.org/ http://triablogue.blogspot.com/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] font lock mode can't get to work
I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having a problem with the font lock mode. adding -*- mode: org; -*- to the file itself works fine, but simply loading a test.org file doesn't activate org mode. I have tried commenting out and back in different options in .emacs, but none seem to work. I only have these lines in .emacs at the moment. ; Org -Mode;; (setq load-path (cons "~/EmacsAddins/Orgmode/lisp" load-path)) (setq load-path (cons "~/EmacsAddins/Orgmode/contrib/lisp" load-path)) (require 'org-install) ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (global-font-lock-mode 1); for all buffers (add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only I presume I am doing something stupid, but can someone tell me what it might be. Thanks, Graham ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: font lock mode can't get to work
"Graham Smith" <[EMAIL PROTECTED]> writes: > I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having > a problem with the font lock mode. > > adding -*- mode: org; -*- to the file itself works fine, but simply > loading a test.org file doesn't activate org mode. > > I have tried commenting out and back in different options in .emacs, > but none seem to work. > > I only have these lines in .emacs at the moment. > > > ; Org -Mode;; > > (setq load-path (cons "~/EmacsAddins/Orgmode/lisp" load-path)) > (setq load-path (cons "~/EmacsAddins/Orgmode/contrib/lisp" load-path)) > (require 'org-install) > > ;; The following lines are always needed. Choose your own keys. > (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) This line looks wrong. What's the extra \\' for after .org? I have the following: (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) so that any files ending in .org or .org_archive trigger org-mode. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: font lock mode can't get to work
>> ;; The following lines are always needed. Choose your own keys. >> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) > > This line looks wrong. What's the extra \\' for after .org? > > I have the following: > > (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) > > so that any files ending in .org or .org_archive trigger org-mode. Ah, your comments have made me realise what the problem is. The line has been copied from the PDF of the manual, but the single apostrophe doesn't paste properly. I had corrected one but not the other. Its working now. I did know it was going to be something stupid. Thanks, your post made me look at this line that much more closely. Graham ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
RE: [Orgmode] Re: font lock mode can't get to work
I think the "\\'" after ".org" is to match the end of the filename. >From emacs info section "Regexp Backslash", `\'' matches the empty string, but only at the end of the string or buffer (or its accessible portion) being matched against. --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernt Hansen Sent: Thursday, September 25, 2008 3:54 PM To: Graham Smith Cc: emacs-orgmode@gnu.org Subject: [Orgmode] Re: font lock mode can't get to work "Graham Smith" <[EMAIL PROTECTED]> writes: > I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having > a problem with the font lock mode. > > adding -*- mode: org; -*- to the file itself works fine, but simply > loading a test.org file doesn't activate org mode. > > I have tried commenting out and back in different options in .emacs, > but none seem to work. > > I only have these lines in .emacs at the moment. > > > ; Org -Mode;; > > (setq load-path (cons "~/EmacsAddins/Orgmode/lisp" load-path)) > (setq load-path (cons "~/EmacsAddins/Orgmode/contrib/lisp" load-path)) > (require 'org-install) > > ;; The following lines are always needed. Choose your own keys. > (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) This line looks wrong. What's the extra \\' for after .org? I have the following: (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) so that any files ending in .org or .org_archive trigger org-mode. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: font lock mode can't get to work
2008/9/25 Sullivan, Gregory (US SSA) <[EMAIL PROTECTED]>: > I think the "\\'" after ".org" is to match the end of the filename. > > From emacs info section "Regexp Backslash", > > `\'' > matches the empty string, but only at the end of the string or > buffer (or its accessible portion) being matched against. I'm afraid I was just copying it across, without giving any specific thoughts to the syntax. Graham ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Tutorial for Org-plot
Hi everyone, Eric has put up a great tutorial about org-plot on worg. Make sure to check it out - Carsten http://orgmode.org/worg/org-tutorials/org-plot.php ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] strange bug using emacs -nw and org.mode
In my org-files I have diary.org. In it I have * Anniversaries #+CATEGORY: Anniv %%(org-bbdb-anniversaries) When I start emacs 22 X there are no problems and birthdays are correctly listed in my agenda when the anniversary field is present in a bbdb record . However when I start "emacs -nw" from a terminal I get: Bad sexp at line 6 in /home/rgr/.emacs.d/org-files/diary.org: (org-bbdb-anniversaries) [6 times] They both use the same init files. There are no differences in the load sequence (the error pops up well before any window system specific loads). Anyone have any idea what this might be about or can advise me on how best to debug it? "emacs -nw --debug-on-error" doesn't trigger anything. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Tutorial for Org-plot
Carsten Dominik <[EMAIL PROTECTED]> writes: > Hi everyone, > > Eric has put up a great tutorial about org-plot on worg. Make sure to check > it out > > - Carsten > > http://orgmode.org/worg/org-tutorials/org-plot.php Bravo! Excellent work. Xiao-Yong -- c/*__o/* <\ * (__ */\ < ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Tutorial for Org-plot
Xiao-Yong Jin <[EMAIL PROTECTED]> writes: > Carsten Dominik <[EMAIL PROTECTED]> writes: > >> Hi everyone, >> >> Eric has put up a great tutorial about org-plot on worg. Make sure to check >> it out >> >> - Carsten >> >> http://orgmode.org/worg/org-tutorials/org-plot.php > > Bravo! Excellent work. > Thank you very much, I'm happy to be able to contribute to such an excellent tool. -- Eric > > Xiao-Yong ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: OSD alerts for appointment reminders (+ erc hook to use OSD)
Richard Riley <[EMAIL PROTECTED]> writes: > I thought some of you linux users might like this - use gnome-osd-client > to put an on screen reminder of your looming appointments. I include a > screenshot link below. I'm sure the code can be improved as I'm not much > of an elisp programmer. I have also included an erc hook to use OSD to > display messages in your subscribed irc channels directed at you. Hope > you like it. I dont know if the gnome-osd stuff will work on kde, but > try it and see. > > http://www.imagebucket.in/images/layopataa1r203lmuwp3.png > > > org stuff: > > , > | ; Update appt each time agenda opened. > | (add-hook 'org-finalize-agenda-hook 'org-agenda-to-appt) > | > | (setq appt-display-format 'window) > | > | (defun org-osd-display (min-to-app new-time msg) > | (osd-display msg msg -1 "center" "center" "Verdana 20") > | ) > | > | (setq appt-disp-window-function (function org-osd-display)) > | > | ;; see my-osd for plugins > | > | (require 'diary-lib) > | (add-hook 'diary-display-hook 'fancy-diary-display) > | > | ;; Run once, activate and schedule refresh > | (run-at-time nil 3600 'org-agenda-to-appt) > | (appt-activate t) > ` > > osd stuff: > > , > | (defun osd-display (id msg &optional delay vattrib hattrib font) > | > | "Display a message with an id of ID for delay seconds with message msg" > | > | (unless vattrib (setq vattrib "top")) > | (unless hattrib (setq hattrib "right")) > | (unless delay (setq delay 5000)) > | (unless font (setq font "Serif Bold Italic 32")) > | > | (save-window-excursion > | (shell-command > | (format > | "gnome-osd-client -f \" osd_font='%s' animations='on' hide_timeout='%d' osd_vposition='%s' > osd_halignment='%s'>%s\"" > | id > | font > | delay > | vattrib > | hattrib > | msg) > | nil nil) > | )) > | > | ;(osd-display "i2" "and OSD..." 500) > | ;(osd-display "id" "Welcome to Emacs" 1000 "top" "center" "Verdana 20") > | > ` > > Finally the erc hook stuff: > > , > | (defun erc-notify-osd (matched-type nick msg) > | (when (string= matched-type "current-nick") > | (message msg) > | (string-match ".*:\\(.*\\)$" msg) > | (setq msg (match-string 1 msg)) > | (osd-display (concat "erc-msg : " (erc-extract-nick nick)) (concat > (erc-extract-nick nick) " : " msg) 1 "bottom" "center" "Verdana 23") > | )) > | > | (add-hook 'erc-text-matched-hook 'erc-notify-osd) > ` I forgot to mention you need to enable the erc module "match" e.g my erc-modules is: (setq erc-modules (quote (autoaway autojoin button completion match menu move-to-prompt noncommands readonly scrolltobottom services smiley stamp spelling truncate highlight-nicknames netsplit fill readonly noncommands irccontrols move-to-prompt))) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] PLOT options
Does a line with gnuplot options look like this (for example): #+PLOT with:histograms I hope not because whatever options I pass to gnuplot this way they are ignored. ;) henry ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode