Re: [O] Re: [Orgmode] Startup page
No, that still gives me the scratch buffer over the top and the the two windows I want down below. When I had the startup page activated it would override one of the two buffers that I had selected but for some reason the scratch buffer is dividing the screen horizontally and place itself over the top of the two buffers I open at the end of .emacs Going to have to look at some of the emacs documentation. What I am trying to create is a bit of elisp magic that will open the agenda on the right buffer and my refile.org (with everything I have captured that needs sent to a home and some dblocks with recently opened items and maybe another one with my unscheduled todo's. Matthew On Wed, Mar 16, 2011 at 11:45 AM, Nick Dokos nicholas.do...@hp.com wrote: Matthew Sauer improv.philoso...@gmail.com wrote: Okay, so I have been working on some ideas for a customization file for startup, an org-agenda, recently modified and maybe unscheduled todo's . . accessible via a function key and at startup. Kind of a home screen. I have it working fine when I run the code but my problem is that when I have it run in .emacs on startup it comes up (agenda on the right and my other chosen buffer on the left (last code in my .emacs to be run) and then the screen is split horizontal and the scratch buffer opens on the top. For me this isn't the desired behavior, didn't know if anyone knew how to turn off emacs opening into a file or if I should move this code to another location because emacs is running something to open that after it goes through .emacs??? or is that just a behavior that is going to occur? Add (setq inhibit-splash-screen t) to your .emacs and see if that solves your problem. You might also need one of the packages that can restore a saved window configuration on startup if you have complicated goings-on. Nick
Re: [O] Re: [Orgmode] Startup page
Here's what I do: (let ((initial-buffer (current-buffer)) (agenda-window (selected-window)) right-window) ;; We're still in the root window. (set-frame-size (selected-frame) 162 50) ; resize the aquamacs window. (org-agenda nil 0) (tabbar-close-tab ; close *scratch* tab. (tabbar-get-tab (get-buffer *scratch*) (tabbar-current-tabset))) (setq right-window (split-window-horizontally 80)) ; make the right window. (select-window right-window) ;; whatever buffer we started in, make it appear in the right side. (switch-to-buffer initial-buffer) (select-window agenda-window) ; go back to the agenda. ) The call to org-agenda is just a custom block view. I end up with the agenda on the left, and some initial, other buffer on the right. No scratch or anything else visible. Seems to work for me. Cheers. Fil On 17 March 2011 06:34, Matthew Sauer improv.philoso...@gmail.com wrote: No, that still gives me the scratch buffer over the top and the the two windows I want down below. When I had the startup page activated it would override one of the two buffers that I had selected but for some reason the scratch buffer is dividing the screen horizontally and place itself over the top of the two buffers I open at the end of .emacs Going to have to look at some of the emacs documentation. What I am trying to create is a bit of elisp magic that will open the agenda on the right buffer and my refile.org (with everything I have captured that needs sent to a home and some dblocks with recently opened items and maybe another one with my unscheduled todo's. Matthew On Wed, Mar 16, 2011 at 11:45 AM, Nick Dokos nicholas.do...@hp.comwrote: Matthew Sauer improv.philoso...@gmail.com wrote: Okay, so I have been working on some ideas for a customization file for startup, an org-agenda, recently modified and maybe unscheduled todo's . . accessible via a function key and at startup. Kind of a home screen. I have it working fine when I run the code but my problem is that when I have it run in .emacs on startup it comes up (agenda on the right and my other chosen buffer on the left (last code in my .emacs to be run) and then the screen is split horizontal and the scratch buffer opens on the top. For me this isn't the desired behavior, didn't know if anyone knew how to turn off emacs opening into a file or if I should move this code to another location because emacs is running something to open that after it goes through .emacs??? or is that just a behavior that is going to occur? Add (setq inhibit-splash-screen t) to your .emacs and see if that solves your problem. You might also need one of the packages that can restore a saved window configuration on startup if you have complicated goings-on. Nick -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salus...@ryerson.ca http://deseng.ryerson.ca/~fil/
Re: [O] Re: [Orgmode] Startup page
Sigh, at times it's the small things that you miss that bite you in the foot. (defun org-dblock-write:recently-modified (params) (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t /cygdrive/c/Dropbox/org *.org | head -10)) \n))) (org-agenda nil a) (delete-other-windows) (split-window-horizontally) (find-file /cygdrive/c/Dropbox/org/Refile.org) I forgot (delete-other-windows), I don't know if it the default behavior but my agenda opens up 1/2 height and I have to run C-x 1 to make it full screen after C-c a a. . .now to get my next dynamic block function (another thread to be started) working and I will have my weekly agenda on one side of the screen. On the tother I will have recently modified files on the other, needing filed captures and Unscheduled TODO items. Thanks for all the help everyone has thrown my way. I am going to look at Filippos' code to see if I can even make this a bit more elegant. Matt On Thu, Mar 17, 2011 at 5:52 AM, Filippo A. Salustri salus...@ryerson.cawrote: Here's what I do: (let ((initial-buffer (current-buffer)) (agenda-window (selected-window)) right-window) ;; We're still in the root window. (set-frame-size (selected-frame) 162 50) ; resize the aquamacs window. (org-agenda nil 0) (tabbar-close-tab ; close *scratch* tab. (tabbar-get-tab (get-buffer *scratch*) (tabbar-current-tabset))) (setq right-window (split-window-horizontally 80)) ; make the right window. (select-window right-window) ;; whatever buffer we started in, make it appear in the right side. (switch-to-buffer initial-buffer) (select-window agenda-window) ; go back to the agenda. ) The call to org-agenda is just a custom block view. I end up with the agenda on the left, and some initial, other buffer on the right. No scratch or anything else visible. Seems to work for me. Cheers. Fil On 17 March 2011 06:34, Matthew Sauer improv.philoso...@gmail.com wrote: No, that still gives me the scratch buffer over the top and the the two windows I want down below. When I had the startup page activated it would override one of the two buffers that I had selected but for some reason the scratch buffer is dividing the screen horizontally and place itself over the top of the two buffers I open at the end of .emacs Going to have to look at some of the emacs documentation. What I am trying to create is a bit of elisp magic that will open the agenda on the right buffer and my refile.org (with everything I have captured that needs sent to a home and some dblocks with recently opened items and maybe another one with my unscheduled todo's. Matthew On Wed, Mar 16, 2011 at 11:45 AM, Nick Dokos nicholas.do...@hp.comwrote: Matthew Sauer improv.philoso...@gmail.com wrote: Okay, so I have been working on some ideas for a customization file for startup, an org-agenda, recently modified and maybe unscheduled todo's . . accessible via a function key and at startup. Kind of a home screen. I have it working fine when I run the code but my problem is that when I have it run in .emacs on startup it comes up (agenda on the right and my other chosen buffer on the left (last code in my .emacs to be run) and then the screen is split horizontal and the scratch buffer opens on the top. For me this isn't the desired behavior, didn't know if anyone knew how to turn off emacs opening into a file or if I should move this code to another location because emacs is running something to open that after it goes through .emacs??? or is that just a behavior that is going to occur? Add (setq inhibit-splash-screen t) to your .emacs and see if that solves your problem. You might also need one of the packages that can restore a saved window configuration on startup if you have complicated goings-on. Nick -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salus...@ryerson.ca http://deseng.ryerson.ca/~fil/
Re: [O] Re: [Orgmode] Startup page
Matthew Sauer improv.philoso...@gmail.com wrote: Sigh, at times it's the small things that you miss that bite you in the foot. (defun org-dblock-write:recently-modified (params) (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t /cygdrive/c/Dropbox/org *.org | head -10)) \n))) (org-agenda nil a) (delete-other-windows) (split-window-horizontally) (find-file /cygdrive/c/Dropbox/org/Refile.org) I forgot (delete-other-windows), I don't know if it the default behavior but my agenda opens up 1/2 height and I have to run C-x 1 to make it full screen after C-c a a. . .now to get my next dynamic block function (another thread to be started) working and I will have my weekly agenda on one side of the screen. On the tother I will have recently modified files on the other, needing filed captures and Unscheduled TODO items. Thanks for all the help everyone has thrown my way. I am going to look at Filippos' code to see if I can even make this a bit more elegant. The org-agenda call has the potential of messing up your carefully crafted window configuration, depending on the value of org-agenda-window-setup. The default value is reorganize-frame which should tell you something :-). You might want to change it temporarily (or customize it to make it permanent): (let ((org-agenda-window-setup 'current-window)) (org-agenda nil a)) Nick
Re: [O] Re: [Orgmode] Startup page
That's right. Somewhere else in my config, I also set org-agenda-window-setup to 'current-window. That was the secret ingredient for me. Sorry I didn't bring this up sooner. I use Aquamacs, and the easiest thing for me is to use both emacs customize and .emacs (Preferences.el in Mac-speak). I set org-agenda-window-setup in customize, but have the code I included in Preferences.el. Makes it hard for me to remember where stuff is. Cheers. Fil On 17 March 2011 18:48, Nick Dokos nicholas.do...@hp.com wrote: Matthew Sauer improv.philoso...@gmail.com wrote: Sigh, at times it's the small things that you miss that bite you in the foot. (defun org-dblock-write:recently-modified (params) (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t /cygdrive/c/Dropbox/org *.org | head -10)) \n))) (org-agenda nil a) (delete-other-windows) (split-window-horizontally) (find-file /cygdrive/c/Dropbox/org/Refile.org) I forgot (delete-other-windows), I don't know if it the default behavior but my agenda opens up 1/2 height and I have to run C-x 1 to make it full screen after C-c a a. . .now to get my next dynamic block function (another thread to be started) working and I will have my weekly agenda on one side of the screen. On the tother I will have recently modified files on the other, needing filed captures and Unscheduled TODO items. Thanks for all the help everyone has thrown my way. I am going to look at Filippos' code to see if I can even make this a bit more elegant. The org-agenda call has the potential of messing up your carefully crafted window configuration, depending on the value of org-agenda-window-setup. The default value is reorganize-frame which should tell you something :-). You might want to change it temporarily (or customize it to make it permanent): (let ((org-agenda-window-setup 'current-window)) (org-agenda nil a)) Nick -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salus...@ryerson.ca http://deseng.ryerson.ca/~fil/
Re: [O] Re: [Orgmode] Startup page
Filippo, Matthew, please use plain text emails, otherwise the code you send is not readable. You can manually turn off rich-formatted (=HTML) emails in gmail for each email. Thanks, -- Bastien
Re: [O] Re: [Orgmode] Startup page
Sorry, at times I forget about this when I use webmail (When I am at school that is the only option due to wi-fi restrictions of the university). Hope this is better. Here is what I have landed on so far, it works great: ---clip herecurrently in .emacs (defun org-dblock-write:recently-modified (params) ;Credit to Ido Magal for this function (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t /cygdrive/c/Dropbox/org *.org | head -10)) \n))) (let ((org-agenda-window-setup 'current-window));Thanks Nick, let me eliminate the delete (org-agenda nil a)) (split-window-horizontally) (find-file /cygdrive/c/Dropbox/Org/Refile.org) -clip here currently in .emacs Below is the basic Refile.org file, some of my captures will fall directly into here unless I refile them out to a specific place, it's a land of things that need dealt with but I just did a quick capture. Now I just need to work out a fun for the Unscheduled todo block and I will have everything how I want it, well for now anyway. I may also add some links or a reminder, and eventually a random quote of the day in a dynamic block from an RSS feed I pull, hmmm, maybe I should pull the last 5 from one or two of the feeds into this block from the feeds.org. This is kind of becoming an aggregator set of buffers. Matt -clip here current refile.org file * Config #+STARTUP: nofold #+STARTUP: indent #+STARTUP: align #+STARTUP: hidestars #-*- eval:(org-update-all-dblocks) -*- * Tasks * Refile * Recently modified org files #+BEGIN: recently-modified #+END * Unscheduled todo items #+BEGIN: unsched-todo #+END -clip here current Refile.org On Thu, Mar 17, 2011 at 7:08 PM, Bastien b...@altern.org wrote: Filippo, Matthew, please use plain text emails, otherwise the code you send is not readable. You can manually turn off rich-formatted (=HTML) emails in gmail for each email. Thanks, -- Bastien
Re: [O] Re: [Orgmode] Startup page
Okay, so I have been working on some ideas for a customization file for startup, an org-agenda, recently modified and maybe unscheduled todo's . . accessible via a function key and at startup. Kind of a home screen. I have it working fine when I run the code but my problem is that when I have it run in .emacs on startup it comes up (agenda on the right and my other chosen buffer on the left (last code in my .emacs to be run) and then the screen is split horizontal and the scratch buffer opens on the top. For me this isn't the desired behavior, didn't know if anyone knew how to turn off emacs opening into a file or if I should move this code to another location because emacs is running something to open that after it goes through .emacs??? or is that just a behavior that is going to occur? Matt On Fri, Mar 11, 2011 at 1:56 AM, Rainer M Krug r.m.k...@gmail.com wrote: On Fri, Mar 11, 2011 at 6:59 AM, Ido Magal i...@idomagal.com wrote: On Mon, Feb 28, 2011 at 03:51, Konrad Hinsen resea...@khinsen.fastmail.net wrote: 1) An org-mode file that contains links to everything I am currently working on, and which I change as projects start and end. This gives me instant access to almost everything I need. 2) A buffer containing my agenda and to-do list. Translated to .emacs, this means: (find-file ~/org/current.org) (split-window-vertically) (org-agenda nil g) Konrad. Same here, except I also have a dblock that links to my most recently modified files to remind myself what I was working on last. In .emacs I have: (defun org-dblock-write:recently-modified (params) (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t ~/org *.org | head -5)) \n))) and my startup page looks like this: -- # -*- eval: (org-update-all-dblocks) -*- ...my stuff... #+BEGIN: recently-modified #+END I have a completelty different approach: As I use emacs / org mode effectively exclusively for literate programming and as I am usually working on two or three projects, I have created startup scripts (sh) and put them into my ~/bin directory - these are called emacs.PROJECTNAME and they change into the base directory of the project and start emacs. Emacs is configured to load all buffers which were open the lat time when started from this location, so I can effectively continue where I left. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: [O] Re: [Orgmode] Startup page
Matthew Sauer improv.philoso...@gmail.com wrote: Okay, so I have been working on some ideas for a customization file for startup, an org-agenda, recently modified and maybe unscheduled todo's . . accessible via a function key and at startup. Kind of a home screen. I have it working fine when I run the code but my problem is that when I have it run in .emacs on startup it comes up (agenda on the right and my other chosen buffer on the left (last code in my .emacs to be run) and then the screen is split horizontal and the scratch buffer opens on the top. For me this isn't the desired behavior, didn't know if anyone knew how to turn off emacs opening into a file or if I should move this code to another location because emacs is running something to open that after it goes through .emacs??? or is that just a behavior that is going to occur? Add (setq inhibit-splash-screen t) to your .emacs and see if that solves your problem. You might also need one of the packages that can restore a saved window configuration on startup if you have complicated goings-on. Nick
Re: [O] Re: [Orgmode] Startup page
On Mon, Feb 28, 2011 at 03:51, Konrad Hinsen resea...@khinsen.fastmail.netwrote: 1) An org-mode file that contains links to everything I am currently working on, and which I change as projects start and end. This gives me instant access to almost everything I need. 2) A buffer containing my agenda and to-do list. Translated to .emacs, this means: (find-file ~/org/current.org) (split-window-vertically) (org-agenda nil g) Konrad. Same here, except I also have a dblock that links to my most recently modified files to remind myself what I was working on last. In .emacs I have: (defun org-dblock-write:recently-modified (params) (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t ~/org *.org | head -5)) \n))) and my startup page looks like this: -- # -*- eval: (org-update-all-dblocks) -*- ...my stuff... #+BEGIN: recently-modified #+END
Re: [O] Re: [Orgmode] Startup page
On Fri, Mar 11, 2011 at 6:59 AM, Ido Magal i...@idomagal.com wrote: On Mon, Feb 28, 2011 at 03:51, Konrad Hinsen resea...@khinsen.fastmail.net wrote: 1) An org-mode file that contains links to everything I am currently working on, and which I change as projects start and end. This gives me instant access to almost everything I need. 2) A buffer containing my agenda and to-do list. Translated to .emacs, this means: (find-file ~/org/current.org) (split-window-vertically) (org-agenda nil g) Konrad. Same here, except I also have a dblock that links to my most recently modified files to remind myself what I was working on last. In .emacs I have: (defun org-dblock-write:recently-modified (params) (insert (mapconcat (lambda (arg) (concat [[file: arg ][ arg ]] )) (split-string (shell-command-to-string ls -t ~/org *.org | head -5)) \n))) and my startup page looks like this: -- # -*- eval: (org-update-all-dblocks) -*- ...my stuff... #+BEGIN: recently-modified #+END I have a completelty different approach: As I use emacs / org mode effectively exclusively for literate programming and as I am usually working on two or three projects, I have created startup scripts (sh) and put them into my ~/bin directory - these are called emacs.PROJECTNAME and they change into the base directory of the project and start emacs. Emacs is configured to load all buffers which were open the lat time when started from this location, so I can effectively continue where I left. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
[O] Re: [Orgmode] Startup page
On 27 Feb, 2011, at 2:36 , Matthew Sauer wrote: As a relatively newer emacs and org-mode user I have found it very interesting to see what people have in their .emacs file. This has spawned my curiosity, what do you have for a startup page? Do you just have it go to the scratch buffer, the standard page or something else? Maybe a custom designed page with links or something else? Might be something interesting to share on worg as well if you have a unique start page for emacs. My Emacs starts up showing two windows: 1) An org-mode file that contains links to everything I am currently working on, and which I change as projects start and end. This gives me instant access to almost everything I need. 2) A buffer containing my agenda and to-do list. Translated to .emacs, this means: (find-file ~/org/current.org) (split-window-vertically) (org-agenda nil g) Konrad. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Startup page
My Emacs startup screen presents two windows: a classic scratch buffer, and the list of today's appointments from .diary. This fits my needs well. I'm not sure it is worth trying to set up a complicated startup buffer. Depends on your need, of course, but you'll found out that it's always too rigid: it assumes your buffer can tell you what you want, instead of *you* telling him what to do. That's the same problem than selecting the right homepage for your browser. Finally nearly everyone end up using a search engine webpage, which is redundant anyway, as browsers now have a websearch field. The trick is to find out what you want to browse *before* opening your browser, then open it for that. Or to find out what you want to do with Emacs and open it for that. Don't let predefined affordances drive your mind, let your mind drive your Emacs :) -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Startup page
As a relatively newer emacs and org-mode user I have found it very interesting to see what people have in their .emacs file. This has spawned my curiosity, what do you have for a startup page? Do you just have it go to the scratch buffer, the standard page or something else? Maybe a custom designed page with links or something else? Might be something interesting to share on worg as well if you have a unique start page for emacs. Just a thought/curiosity as I am working on designing one for my emacs for my use as a student/father/employee. Matthew Sauer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode