all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: Re: R: WISH: separate org-mode customization file
Date: Wed, 02 Jul 2008 04:08:39 +0200	[thread overview]
Message-ID: <486AE327.9070802@gmx.de> (raw)
In-Reply-To: <20080701162621.31061c97@wkstn161-107.carbarn.georgetown.edu>

[-- Attachment #1: Type: text/plain, Size: 3316 bytes --]

> 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

[-- Attachment #2: sebastian_rose.vcf --]
[-- Type: text/x-vcard, Size: 499 bytes --]

begin:vcard
fn:Sebastian Rose
n:Rose;Sebastian
email;internet:sebastian_rose@gmx.de
title:Fachinformatiker/Anwendendungsentwicklung
tel;cell:+49 173 / 83 93 417
note;quoted-printable:Entwicklung  von Internetanwendungen und Programmen  mit  freien  Werkzeu=
	gen  und Bibliotheken.=0D=0A=
	=0D=0A=
	PHP, Java, C/C++,  Bash,  Perl,  Apache, MySQL,  PostgreSQL, xt::commerce=
	, Typo3, Server,  Netzwerk,  Desktop, Datenbank, gtkmm=0D=0A=
	
x-mozilla-html:FALSE
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2008-07-02  2:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01 12:19 WISH: separate org-mode customization file Harri Kiiskinen
2008-07-01 12:30 ` R: " Giovanni Ridolfi
2008-07-01 14:19   ` Manish
2008-07-01 14:53     ` Bernt Hansen
2008-07-01 18:21       ` Harri Kiiskinen
2008-07-01 20:26         ` John Rakestraw
2008-07-02  2:08           ` Sebastian Rose [this message]
2008-07-02 21:50         ` Eddward DeVilla
2008-07-02 22:14           ` Tim O'Callaghan
2008-07-04 11:57           ` Harri Kiiskinen
2008-07-01 15:04     ` Giovanni Ridolfi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=486AE327.9070802@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.