Harri Kiiskinen | 1 Jul 2008 14:19
Picon
Picon

WISH: separate org-mode customization file

I was wondering, whether it might be possible to implement a separate
customization file for org-mode? I use two different computers, one with
Linux and other with XP, and an USB stick with Emacs installed, that I
can use at various places. I only synchronise my work files, though, and
it definitively is not possible to sync ~/.emacs between different
systems, so to have similar org-mode configuration on every system, I
have to do the customisation by hand in a separate file, which I then
sync between the systems.
	To ease this, I'd suggest adding a way to make org-mode use an external
customisation file to store the settings and everything, instead of the
~/.emacs or whatever it happens to be. I'd do something like that by
myself, but Emacs Lisp is just trees to me...

Best Wishes,

Harri K.
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Giovanni Ridolfi | 1 Jul 2008 14:30
Picon
Favicon

R: WISH: separate org-mode customization file

--- Mar 1/7/08, Harri Kiiskinen <harkiisk <at> utu.fi> ha scritto:
> Data: Martedì 1 luglio 2008, 12:19
> I was wondering, whether it might be possible to implement a
> separate
> customization file for org-mode? 

Hi, Harri,

please write in your both 

~/.emacs  and c:\Documents and Settings\Your-user\Application data\.emacs

(load "your/path/your-org-config.el")

Giovanni (Emacs 22.2, Win-xp)

      Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Manish | 1 Jul 2008 16:19
Picon
Gravatar

Re: R: WISH: separate org-mode customization file

  On Tue, Jul 1, 2008 at 6:00 PM, Giovanni Ridolfi wrote:
  > --- Mar 1/7/08, Harri Kiiskinen ha scritto:
  >> Data: Martedì 1 luglio 2008, 12:19
  >> I was wondering, whether it might be possible to implement a
  >> separate
  >> customization file for org-mode?
  >
  > Hi, Harri,
  >
  > please write in your both
  >
  > ~/.emacs  and c:\Documents and Settings\Your-user\Application data\.emacs
  >
  > (load "your/path/your-org-config.el")

Now if I use customize interface to well.. customize then what
will be updated .emacs or "your-org-config.el"?

Thanks,
-- Manish

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Giovanni Ridolfi | 1 Jul 2008 17:04
Picon
Favicon

Re: Re: R: WISH: separate org-mode customization file

--- Mar 1/7/08, Manish  ha scritto:

>   > please write in your both
>   >
>   > ~/.emacs  and c:\Documents and
> Settings\Your-user\Application data\.emacs
>   >
>   > (load "your/path/your-org-config.el")
> 
> Now if I use customize interface to well.. customize then
> what
> will be updated .emacs or "your-org-config.el"?

   .emacs   :-/

 unless (from Emacs manual)
"
 Normally this saves customizations in your init file, `~/.emacs'.
If you wish, you can save customizations in another file instead.  To
make this work, your `~/.emacs' should set `custom-file' to the name of
that file.  Then you should load the file by calling `load'.  For
example:

     (setq custom-file "~/.emacs-custom.el")
     (load custom-file)
"

cheers
Giovanni

(Continue reading)

Bernt Hansen | 1 Jul 2008 16:53
Picon

Re: R: WISH: separate org-mode customization file

Manish <mailtomanish.sharma <at> gmail.com> writes:

>   On Tue, Jul 1, 2008 at 6:00 PM, Giovanni Ridolfi wrote:
>   > --- Mar 1/7/08, Harri Kiiskinen ha scritto:
>   >> Data: Martedì 1 luglio 2008, 12:19
>   >> I was wondering, whether it might be possible to implement a
>   >> separate
>   >> customization file for org-mode?
>   >
>   > Hi, Harri,
>   >
>   > please write in your both
>   >
>   > ~/.emacs  and c:\Documents and Settings\Your-user\Application data\.emacs
>   >
>   > (load "your/path/your-org-config.el")
>
> Now if I use customize interface to well.. customize then what
> will be updated .emacs or "your-org-config.el"?

set the variable 'custom-file' to the file you want your custom settings
in.

HTH
-Bernt

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
(Continue reading)

Harri Kiiskinen | 1 Jul 2008 20:21
Picon
Picon

Re: Re: R: WISH: separate org-mode customization file

On Tue, 2008-07-01 at 10:53 -0400, Bernt Hansen wrote:
> Manish <mailtomanish.sharma <at> gmail.com> writes:
> 
> >   On Tue, Jul 1, 2008 at 6:00 PM, Giovanni Ridolfi wrote:
> >   > --- Mar 1/7/08, Harri Kiiskinen ha scritto:
> >   >> Data: Martedì 1 luglio 2008, 12:19
> >   >> I was wondering, whether it might be possible to implement a
> >   >> separate
> >   >> customization file for org-mode?
> >   >
> >   > Hi, Harri,
> >   >
> >   > please write in your both
> >   >
> >   > ~/.emacs  and c:\Documents and Settings\Your-user\Application data\.emacs
> >   >
> >   > (load "your/path/your-org-config.el")
> >
> > Now if I use customize interface to well.. customize then what
> > will be updated .emacs or "your-org-config.el"?
> 
> set the variable 'custom-file' to the file you want your custom settings
> in.
> 

Thank you all for the answers, but it seems that I was not quite clear
enough. I'm quite able to set the 'custom-file' to whatever I want, and
I can (load "myconfig.el") - which is what I currently do. Lets restate
the problem:

(Continue reading)

John Rakestraw | 1 Jul 2008 22:26

Re: Re: R: WISH: separate org-mode customization file

Hi Harri --

> So I'm suggesting a new variable like 'org-custom-file' or something,
> which is used to save only the customization for org-mode. Something
> like Mew already does. I think this would be logical also, because
> org-mode by definition has lots of customizations, which are not only
> options affecting its behaviour on the current system, but are the
> base for its use. To put it in other words, many of the other Emacs
> modes function without any specific customizations, but org-mode is
> hardly functional without your own tags, remember template
> definitions, agenda file lists etc. In that sense, the customization
> data is more closely linked to the actual org-files than than the
> specific instance of Emacs on a particular system, and therefore it
> would be logical to have it in a separate file.

I should say that I'm not an emacs guru, and that there are likely
others here who have a better way of doing this than what I'm about to
suggest. But I did something like it a couple of years ago when I was
running emacs on Linux at home and on Windows at work. I'm now on Linux
both places, so I've moved on. I no longer have the config files I
used, but I can still describe the basics of what I did:

--I had a basic .emacs file that began by loading the .emacs config
stuff common to both linux and windows.

--.emacs then tested for the system name of the machine I was on (I
think it was the variable "system-name"). If the name returned was that
of the Windows machine, then .emacs loaded something
like .emacs_windows. If it was the name of the linux machine, it
loaded .emacs_linux.
(Continue reading)

Carsten Dominik | 2 Jul 2008 01:27
Picon
Picon
Favicon

Re: Weekday repeaters, and filtering scheduled tasks.


On Jun 26, 2008, at 8:28 PM, Manish wrote:

>  On Fri, Jun 27, 2008 at 8:30 AM, Avdi Grimm wrote:
>> On Thu, Jun 26, 2008 at 10:55 PM, Manish wrote:
>>> I do not understand this one.
>>
>> I'm looking for the combination of *all* of those conditions
>> in one agenda view. In other words, I want to see all the
>> NEXT items which are either unscheduled or due today; but I
>> don't want to see any items which are scheduled in the
>> future.
>
> Carsten,
>
> May I request some more pre-defined conditions when using
> org-agenda-skip-* functions e.g. due and not due, optionally
> accepting a date+time to compare against (using current date and
> time as default)?  Hope this makes sense.
>
> -- Manish
>

Hi Manish, I have not done so yet for the skipping mechanism.  But I  
have just implemented time comparisons for property searches.  For  
example:

    +DEADLINE<"<2008-07-01>"
    +DEADLINE>="<now>"
    +DEADLINE>"<today>"
(Continue reading)

Carsten Dominik | 2 Jul 2008 01:34
Picon
Picon
Favicon

Re: outline-regexp and font locking

Hi Aare

In Org-mode, the outline starter is hard-coded to be "*", so you  
cannot without problems change the outline regexp.

What you can to is use outline-mode to edit your file, change the  
outline regexp for that, and then use tricks like listed here

    http://orgmode.org/worg/org-faq.php#1.3

to get some of Org's functionality into that mode.

- Carsten

On Jun 28, 2008, at 8:29 PM, Aarre Laakso wrote:

> Hello,
>
> In order to edit AsciiDoc files using Org, I have the following line
> in my .emacs (XEmacs 21.4.21):
>
> (add-hook 'org-mode-hook '(lambda () (setq outline-regexp "=+")))
>
> This does let me use Org outlining commands (e.g., tab to
> collapse/show headings). However, it turns off the pretty font-locking
> of the headings that I get with the default outline-regexp in
> org-mode.
>
> Could someone tell me how to change outline-regexp for org-mode AND
> still get full org-mode font-locking?
(Continue reading)

Sebastian Rose | 2 Jul 2008 04:08
Picon
Picon

Re: Re: R: WISH: separate org-mode customization file

> In that sense, the customization
> data is more closely linked to the actual org-files than than the
> specific instance of Emacs on a particular system, and therefore it
> would be logical to have it in a separate file.

So why not use one?

The problem is to sync your customizations from host to host. As for me,
the handish setup is something to be avoided - it makes emacs a mystery
for new users - so do lot's of strange configuration files (I wish
~/etc/ would be part of the FSHS :))

This is what I do:

I'm contentedly using .emacs :)

So I just can use 'M-x customize' to customize org-mode and that's it.
Is there anything more convenient than customize?

So. How to use emacs on different machines?

My .emacs is under monotone and thus the same on all my systems
(monotone is very handy for repos on USB-sticks or SSH. Hardly any
setup at all... monotone keeps the file's masks, even if the USB-Stick
is FAT formated - it's great!). I always carry my USB-Stick with me.

My .emacs is actually linked in my ~/emacs/ (as ~/emacs/.emacs) which is
under monotone. So are .bbdb and .gnus.el... (I have my gnus-mails under
monotone too).

(Continue reading)


Gmane