From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: R: WISH: separate org-mode customization file Date: Wed, 02 Jul 2008 04:08:39 +0200 Message-ID: <486AE327.9070802@gmx.de> References: <1214914777.6519.132.camel@localhost.localdomain> <442673.75750.qm@web28308.mail.ukl.yahoo.com> <873amthd01.fsf@gollum.intra.norang.ca> <1214936469.6519.224.camel@localhost.localdomain> <20080701162621.31061c97@wkstn161-107.carbarn.georgetown.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020800090805060409080102" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDrlO-0006vx-Tg for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 22:08:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDrlN-0006vW-Jj for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 22:08:06 -0400 Received: from [199.232.76.173] (port=59901 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDrlN-0006vS-8c for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 22:08:05 -0400 Received: from mail.gmx.net ([213.165.64.20]:50902) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KDrlM-0003Yv-Q9 for emacs-orgmode@gnu.org; Tue, 01 Jul 2008 22:08:05 -0400 In-Reply-To: <20080701162621.31061c97@wkstn161-107.carbarn.georgetown.edu> 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------020800090805060409080102 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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). I use custom files just for my own stuff that cannot be adjusted using 'customize'. I therefor have this in my .emacs: (setq sr-lisp-directory "/home/sebastian/emacs/lisp/") (setq load-path (cons sr-lisp-directory load-path)) (setq load-path (cons (concat sr-lisp-directory "ext/org-mode/lisp/") load-path)) ... The last one is the local clone of org's git repo. I just call 'make' in there and that's it (It's in the load path BEFORE the org that comes with emacs). (require 'sr-globals) ;; end of .emacs loads my central custom file, which in turn loads several files like sr-org-mode.el where I set up todo sequences and stuff. You also could use (load /path/to/my/org-init.el) ;; end of .emacs Just leave the section (custom-set-variables ;; custom-set-variables was added by Custom. .... alone and that's it. You might want to put this here into you're .bash_logout (if you use bash): cd ~/emacs/gnus mtn add --unknown . # Add new mails mtn commit -m"" # commit all changes, indluding customize. # Remember the link to ~/.emacs mtn sync # sync to USB-Stick. Never forget to sync. cd - Simple :) John Rakestraw schrieb: > --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"). It is. I do this to get around different screen resolutions at the very top of my .emacs (that I use on three machines): (if (string-match "orgon" (system-name)) (progn (set-default-font "DejaVu Sans Mono-13") ;; 14' @ 1024x768 (setq line-spacing 1) (setq default-frame-alist ....))) (if (string-match "kassiopeia" (system-name)) ;; 19' @ ?? (progn (set-default-font "DejaVu Sans Mono-11") (setq line-spacing 3) (setq default-frame-alist .....))) ;; else beteigeuze - 15' @ 1400x1050 (set-default-font "DejaVu Sans Mono-13.5") (setq default-frame-alist ...)))) This is the only difference between the 3 machines and their emacs-setup. Have fun, Sebastian --------------020800090805060409080102 Content-Type: text/x-vcard; charset=utf-8; name="sebastian_rose.vcf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sebastian_rose.vcf" YmVnaW46dmNhcmQNCmZuOlNlYmFzdGlhbiBSb3NlDQpuOlJvc2U7U2ViYXN0aWFuDQplbWFp bDtpbnRlcm5ldDpzZWJhc3RpYW5fcm9zZUBnbXguZGUNCnRpdGxlOkZhY2hpbmZvcm1hdGlr ZXIvQW53ZW5kZW5kdW5nc2VudHdpY2tsdW5nDQp0ZWw7Y2VsbDorNDkgMTczIC8gODMgOTMg NDE3DQpub3RlO3F1b3RlZC1wcmludGFibGU6RW50d2lja2x1bmcgIHZvbiBJbnRlcm5ldGFu d2VuZHVuZ2VuIHVuZCBQcm9ncmFtbWVuICBtaXQgIGZyZWllbiAgV2Vya3pldT0NCglnZW4g IHVuZCBCaWJsaW90aGVrZW4uPTBEPTBBPQ0KCT0wRD0wQT0NCglQSFAsIEphdmEsIEMvQysr LCAgQmFzaCwgIFBlcmwsICBBcGFjaGUsIE15U1FMLCAgUG9zdGdyZVNRTCwgeHQ6OmNvbW1l cmNlPQ0KCSwgVHlwbzMsIFNlcnZlciwgIE5ldHp3ZXJrLCAgRGVza3RvcCwgRGF0ZW5iYW5r LCBndGttbT0wRD0wQT0NCgkNCngtbW96aWxsYS1odG1sOkZBTFNFDQp2ZXJzaW9uOjIuMQ0K ZW5kOnZjYXJkDQoNCg== --------------020800090805060409080102 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --------------020800090805060409080102--