From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: Re: [Orgmode] Startup page Date: Wed, 16 Mar 2011 11:19:14 -0500 Message-ID: References: <7A1717E3-E36E-490D-9432-A10B06DD7CE2@khinsen.fastmail.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174bef9ce9a4d3049e9be711 Return-path: Received: from [140.186.70.92] (port=59922 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PztRO-0003X0-M9 for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 12:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PztRM-00019i-SY for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 12:19:18 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:59987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PztRM-00019C-L1 for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 12:19:16 -0400 Received: by ewy9 with SMTP id 9so522443ewy.0 for ; Wed, 16 Mar 2011 09:19:15 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: Konrad Hinsen , Ido Magal , emacs-orgmode@gnu.org --0015174bef9ce9a4d3049e9be711 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > On Fri, Mar 11, 2011 at 6:59 AM, Ido Magal wrote: > > On Mon, Feb 28, 2011 at 03:51, Konrad Hinsen < > research@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: Rainer@krugs.de > > Skype: RMkrug > Google: R.M.Krug@gmail.com > > --0015174bef9ce9a4d3049e9be711 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Okay, so I have been working on some ideas for a customization file fo= r startup, an org-agenda, recently modified and maybe unscheduled todo'= s . . accessible via a function key and at startup.=A0 Kind of a "home= screen".=A0=A0 I have it working fine when I run the code but my prob= lem 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 ope= ns on the top.=A0 For me this isn't the desired behavior, didn't kn= ow 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 op= en that after it goes through .emacs???=A0 or is that just a behavior that = is going to occur?
=A0
Matt

On Fri, Mar 11, 2011 at 1:56 AM, Rainer M Krug <= span dir=3D"ltr"><r.m.krug@gmail.c= om> wrote:
On Fri, Mar 11, 2011 at 6:59 AM, Ido Magal <ido@idomagal.com> wrote:
> On Mon, F= eb 28, 2011 at 03:51, Konrad Hinsen <research@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.
&g= t;>
>> Translated to .emacs, this means:
>>
>>= ; (find-file "~/org/= current.org")
>> (split-window-vertically)
>> (org-agenda nil "g"= ;)
>>
>> Konrad.
>
> =A0Same here, except I a= lso 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 (p= arams)
> =A0=A0(insert (mapconcat (lambda (arg) (concat "[[file:= " arg "][" arg "]]" ))
> (split-string (shel= l-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 e= macs / org mode
effectively exclusively for literate programming and as = I am usually
working on two or three projects, I have created startup sc= ripts (sh)
and put them into my ~/bin directory - these are called
emacs.PROJECTNAM= E 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 w= hen 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<= br>Office Suite 2039
Stellenbosch University
Main Campus, Merriman Av= enue
Stellenbosch
South Africa

Cell:=A0 =A0 =A0 =A0 =A0=A0 +27 - (0)83 9479 042 Fax:=A0 =A0 =A0 =A0 =A0 =A0 +27 - (0)86 516 2782
Fax:=A0 =A0 =A0 =A0 =A0 =A0 +49 - (0)321 2125 2244
email:= =A0 =A0 =A0 =A0 =A0 Rainer@krugs.de<= br>
Skype:=A0 =A0 =A0 =A0 =A0 RMkrug
Google:=A0 =A0 =A0 =A0=A0 R.M.Krug@gmail.com

<= /div>
--0015174bef9ce9a4d3049e9be711--