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

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

Re: loading specific .emacs file on command line?


From: Kevin Rodgers
Subject: Re: loading specific .emacs file on command line?
Date: Fri, 14 Feb 2003 11:05:10 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Robert Marshall wrote:

Or for another approach - having broken up the emacs file I use the
name parameter on the command line and use the following defun

(defun rajm-get-emacs-class ()
  (let ((emacs-class
         (cdr (assoc 'name initial-frame-alist))))
    (cond
     ((not emacs-class) 'full-class)
     ((string-equal "VM" emacs-class) 'vm-class)
     ((string-equal "rajm" emacs-class) 'full-class)
     ((string-equal "Root" emacs-class) 'root-class)
     ((string-equal "Gnus" emacs-class) 'fs-agent-class)
     ((string-equal "default" emacs-class) 'nil)
     (t 'remote-class))))
(defvar rajm-emacs-class (rajm-get-emacs-class))

And then load files in .emacs based upon rajm-emacs-class

Cool.  I use the -name vm option to differentiate an instance of
Emacs running VM from my normal editing session, via .Xdefaults:

Emacs*cursorColor:      blue
Emacs*pointerColor:     blue
vm*cursorColor: red
vm*pointerColor:        red

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

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