* multiple configuration files_ is this correct method?
@ 2023-10-16 23:29 జిందం వాఐి
2023-10-23 12:07 ` Nikolay Kudryavtsev
0 siblings, 1 reply; 3+ messages in thread
From: జిందం వాఐి @ 2023-10-16 23:29 UTC (permalink / raw)
To: Help-gnu Emacs
* i am on debian bookworm from proot-distro [ 1 ]
* login method_ $ proot-distro login debian
* as of now, i have two configurations_ default
and irc
* i am trying to use multiple configurations
concurrently by launching from menu on twm:
"1" f.exec "emacs-lucid -l ~/.config/emacs/irc/init.el &"
* is code correct?
* files in .config/emacs
* .config/emacs/default_
* init.el
;;; Personal configuration -*- lexical-binding: t -*-
;; Save the contents of this file under ~/.emacs.d/init.el
;; Do not forget to use Emacs' built-in help system:
;; Use C-h C-h to get an overview of all help commands. All you
;; need to know about Emacs (what commands exist, what functions do,
;; what variables specify), the help system can provide.
;; Add the NonGNU ELPA package archive
;; (require 'package)
;; (add-to-list 'package-archives '("nongnu" .
"https://elpa.nongnu.org/nongnu/"))
;; (unless package-archive-contents (package-refresh-contents))
;; Miscellaneous options
;; Store automatic customisation options elsewhere
(setq custom-file (locate-user-emacs-file
"~/.config/emacs/default/custom.el"))
(when (file-exists-p custom-file)
(load custom-file))
* custom.el
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(auto-save-default nil)
'(create-lockfiles nil)
'(debug-on-error t)
'(make-backup-files nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
* .config/emacs/irc_
* init.el_
;;; Personal configuration -*- lexical-binding: t -*-
;; Save the contents of this file under ~/.emacs.d/init.el
;; Do not forget to use Emacs' built-in help system:
;; Use C-h C-h to get an overview of all help commands. All you
;; need to know about Emacs (what commands exist, what functions do,
;; what variables specify), the help system can provide.
;; Add the NonGNU ELPA package archive
;; (require 'package)
;; (add-to-list 'package-archives '("nongnu" .
"https://elpa.nongnu.org/nongnu/"))
;; (unless package-archive-contents (package-refresh-contents))
;; Miscellaneous options
;; Store automatic customisation options elsewhere
(setq custom-file (locate-user-emacs-file
"~/.config/emacs/irc/custom.el"))
(when (file-exists-p custom-file)
(load custom-file))
* custom.el
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(auto-save-default nil)
'(create-lockfiles nil)
'(debug-on-error t)
'(make-backup-files nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;;; IRC Client
;; Connect to Librea
(setq rcirc-server-alist
'(("irc.libera.chat" :channels ("#emacs")
:port 6697 :encryption tls)))
;; Set your IRC nick
(setq rcirc-default-nick "jindam")
(add-hook 'rcirc-mode-hook #'rcirc-track-minor-mode)
(add-hook 'rcirc-mode-hook #'rcirc-omit-mode)
[ 1 ] https://github.com/termux/proot-distro
--
regards,
జిందం వాఐి [ jindam, vani ]
web_
http://zjlz2bde5g34r7ek6fvstafhbhl5s76gyqj6yni6js7jbn4i3baukpid.onion
[matrix]_ @jindam.vani:oikei.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: multiple configuration files_ is this correct method?
2023-10-16 23:29 multiple configuration files_ is this correct method? జిందం వాఐి
@ 2023-10-23 12:07 ` Nikolay Kudryavtsev
2023-10-23 13:31 ` Basile Starynkevitch
0 siblings, 1 reply; 3+ messages in thread
From: Nikolay Kudryavtsev @ 2023-10-23 12:07 UTC (permalink / raw)
To: జిందం వాఐి,
Help-gnu Emacs
No, it's not, -l flag still loads your init.
If you're using 29.1, there's now '--init-directory' flag for doing that.
Another well tested option for multiple inits is using the
emacs-distribution script form here:
https://www.emacswiki.org/emacs/emacs-distribution
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: multiple configuration files_ is this correct method?
2023-10-23 12:07 ` Nikolay Kudryavtsev
@ 2023-10-23 13:31 ` Basile Starynkevitch
0 siblings, 0 replies; 3+ messages in thread
From: Basile Starynkevitch @ 2023-10-23 13:31 UTC (permalink / raw)
To: help-gnu-emacs
On 10/23/23 14:07, Nikolay Kudryavtsev wrote:
> No, it's not, -l flag still loads your init.
>
> If you're using 29.1, there's now '--init-directory' flag for doing that.
>
> Another well tested option for multiple inits is using the
> emacs-distribution script form here:
>
> https://www.emacswiki.org/emacs/emacs-distribution
>
>
For the RefPerSys open source inference engine project (see GPLv3+ code
on https://github.com/RefPerSys/RefPerSys/ ...) I find convenient to
have two emacs processes (one running the latest emacs, installed as
/usr/local/bin/emacs-trunk so 30.0.50 compiled every day after a git
pull, another being the Ubuntu default emacs, so GNU Emacs 29.1).
The other emacs is started by the following zsh function
function bisemacs()
{
emacs -bg azure --no-desktop --name bisemacs -q -l $HOME/.bisemacs &
}
with emacs-trunk started in a terminal as emacs-trunk -bg ivory &
My .emacs file being on
https://github.com/bstarynk/misc-basile/blob/master/.emacs
Regards from near Paris in France
--
Basile Starynkevitch
<basile@starynkevitch.net>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-23 13:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-16 23:29 multiple configuration files_ is this correct method? జిందం వాఐి
2023-10-23 12:07 ` Nikolay Kudryavtsev
2023-10-23 13:31 ` Basile Starynkevitch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).