unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* run/load a lisp script before user init file
@ 2013-10-07 15:24 Jarek Czekalski
  2013-10-07 16:43 ` Eli Zaretskii
  0 siblings, 1 reply; 24+ messages in thread
From: Jarek Czekalski @ 2013-10-07 15:24 UTC (permalink / raw)
  To: emacs-devel

Hi

My specific problem is about Emacspeak. It has a file emacspeak-setup.el 
and the manual says it should be loaded before user init script.

The goal is achieved by probing for a user file in a shell script 
(emacspeak) which later runs the command:

emacs -q -l $path/emacspeak-setup.el -l $userInitFile

It's not perfect, because -q switch causes customizing variables impossible.

The other suggestion from the manual is to append the "load" command at 
the top of the user script. I'm not choosing this solution, because I 
prepare an installer for Windows version of Emacspeak and such action 
would affect only one user.

After the installation the user should be able to choose whether he 
wants to run emacs with or without emacspeak. Having a script that runs 
emacs with emacspeak seems to be the right solution.

What would you advice to resolve the issue?

Thanks,
Jarek




^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: run/load a lisp script before user init file
@ 2013-10-10 13:52 Barry OReilly
  2013-10-10 16:11 ` Josh
  0 siblings, 1 reply; 24+ messages in thread
From: Barry OReilly @ 2013-10-10 13:52 UTC (permalink / raw)
  To: emacs-devel, jarekczek

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

> emacs -q -l $path/emacspeak-setup.el -l $userInitFile
>
> It's not perfect, because -q switch causes customizing variables
> impossible.

I'm not sure what you mean. I tried 'emacs -q -l ~/.emacs.d/init.el'
and it seemed to set my customized variables correctly. I also tried
defining a defcustom in /tmp/foo.el, adding it to the
custom-set-variables form of init.el, and 'emacs -q -l /tmp/foo.el -l
~/.emacs.d/init.el'. The variable was set correctly.

[-- Attachment #2: Type: text/html, Size: 553 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-10-10 16:11 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-07 15:24 run/load a lisp script before user init file Jarek Czekalski
2013-10-07 16:43 ` Eli Zaretskii
2013-10-07 18:42   ` Jarek Czekalski
2013-10-07 19:00     ` Eli Zaretskii
2013-10-07 19:37       ` Jarek Czekalski
2013-10-07 20:08         ` Eli Zaretskii
2013-10-07 22:52           ` Stefan Monnier
2013-10-08  5:52             ` Jarek Czekalski
2013-10-08  6:27               ` Stephen J. Turnbull
2013-10-08  6:40                 ` Harald Hanche-Olsen
2013-10-08 13:09                   ` Stephen J. Turnbull
2013-10-08 14:30                     ` Jarek Czekalski
2013-10-08 14:36                     ` Jarek Czekalski
2013-10-08 14:50                       ` Jarek Czekalski
2013-10-08 16:01                         ` Stephen J. Turnbull
2013-10-08 19:34                         ` Josh
2013-10-08  6:46                 ` Jarek Czekalski
2013-10-08 16:22                   ` Glenn Morris
2013-10-08 17:30                     ` Tom Tromey
2013-10-09  1:56                       ` Stephen J. Turnbull
2013-10-08 21:47                     ` Jarek Czekalski
2013-10-08  6:16       ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2013-10-10 13:52 Barry OReilly
2013-10-10 16:11 ` Josh

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).