From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sven Bretfeld" Newsgroups: gmane.emacs.help Subject: Switching sets of variables Date: 4 Mar 2010 01:19:38 +0100 Message-ID: <877hptq6p1.fsf@gmx.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267662018 9316 80.91.229.12 (4 Mar 2010 00:20:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Mar 2010 00:20:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 04 01:20:13 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NmynS-0001x6-EB for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Mar 2010 01:20:10 +0100 Original-Received: from localhost ([127.0.0.1]:59573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmynR-0005C5-P3 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Mar 2010 19:20:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nmyn3-0005AJ-KS for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 19:19:45 -0500 Original-Received: from [140.186.70.92] (port=44304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nmyn2-00059q-Tq for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 19:19:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nmyn2-0003bF-9B for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 19:19:44 -0500 Original-Received: from mx4.rz.ruhr-uni-bochum.de ([134.147.64.53]:48551) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nmyn1-0003ar-Tn for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 19:19:44 -0500 X-Queued: (qmail 25816 invoked from network); 4 Mar 2010 00:19:39 -0000 Original-Received: from c2-3-4.rz.ruhr-uni-bochum.de (134.147.64.5) by mx4.rz.ruhr-uni-bochum.de with SMTP; 4 Mar 2010 00:19:39 -0000 X-Queued: (qmail 17864 invoked by uid 281); 4 Mar 2010 00:19:39 -0000 X-Qmailscanner: from 88.153.160.5 (0axIjN0NPR87ErjGjkH47Q==@88.153.160.5) by c2-3-4.rz.ruhr-uni-bochum.de (envelope-from , uid 80) with qmail-scanner-2.01 (sophie: 3.05/3.4/4.50. Clear:RC:1(88.153.160.5):. Processed in 0.0171 secs); 04 Mar 2010 00:19:39 -0000 Original-Received: from ip-88-153-160-5.unitymediagroup.de (HELO kamaloka) (0axIjN0NPR87ErjGjkH47Q==@88.153.160.5) by c2-3-4.rz.ruhr-uni-bochum.de with (DHE-RSA-AES128-SHA encrypted) SMTP; 4 Mar 2010 00:19:39 -0000 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72344 Archived-At: Hi to all I want to have two sets of different values for the same variables and switch between these sets. For example: ,----First set: org-mode settings for my private context | | (defvar org-gtd-file "~/private.org") | (setq org-todo-keywords '((type "NEXT" "WAITING" "APPT" "DONE"))) | (setq org-tag-alist '(("OFFICE" . ?o) | ("HOME" . ?h) | ("READING" . ?r) | ("SHOPPING" . ?s))) `---- ,----Second set: org-mode settings for office organization | | (defvar org-gtd-file "~/institute.org") | (setq org-todo-keywords '((type "PRESENT" "HOLIDAY" "DELEGATED" "DONE"))) | (setq org-tag-alist '(("ANNE" . ?a) | ("MARY" . ?m) | ("JOE" . ?j) | ("FRED" . ?f))) | `---- I want to have a function that switches between these sets. How could that be done? Thanks for help, Sven