help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Switching sets of variables


From: Drew Adams
Subject: RE: Switching sets of variables
Date: Tue, 4 May 2010 11:59:23 -0700

> I want to have two sets of different values for the same 
> variables and switch between these sets.

With Bookmark+ you can easily create a variable-list bookmark for each set.
Jumping to such a bookmark just restores that set of variable values.

http://www.emacswiki.org/emacs/BookmarkPlus#FunctionSequenceVarlistBookmarks

Command `bookmarkp-set-varlist-bookmark' prompts you for the variables to save.
They are saved with their current values.

If you want to create such variable sets from Lisp using specified values, you
can use function `bookmarkp-create-varlist-bookmark'. For example:

(bookmarkp-create-varlist-bookmark
 "Var Set #1"         ; NAME
 '(org-gtd-file       ; VARS
   org-todo-keywords
   org-tag-alist)
 '("~/private.org"    ; VALUES
   ((type "NEXT" "WAITING" "APPT" "DONE"))
   (("OFFICE" . ?o) ("HOME" . ?h)
    ("READING" . ?r) ("SHOPPING" . ?s))))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]