I would like to run two different emacs on the same Linux desktop (Debian/Sid/x86-64) running some XFCE4 desktop.

The first is a latest emacs snapshot compiled from source code every morning (currently git commit 3973f68f590dabc6b7bed):

 % /usr/local/bin/emacs-trunk --version
 GNU Emacs 28.0.50

The second is the regular Debian emacs (package emacs-gtk, version 1:26.3+1-2) so :

% /usr/bin/emacs --version
GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.

Actually, I want to have one background color on one emacs for the Bismon project, and another background color on another emacs for the RefPerSys project (both being GPLv3+ for Linux). So I was thinking of starting both:

cd $HOME/bismon ; /usr/bin/emacs -bg ivory &
cd $HOME/refpersys ; /usr/local/bin/emacs-trunk -bg azure &

and using also /usr/bin/emacsclient for the first, and /usr/local/bin/emacsclient-trunk and I want to share the same $HOME/.emacs configuration file between both. Of course both emacs and emacs-trunk are started from the same terminal and zsh shell process.

Is that easily possible?

  • Symlink your init file to the other home folder? – Swedgin Jun 2 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.