Skip to main content

Questions tagged [invocation]

Filter by
Sorted by
Tagged with
0 votes
1 answer
453 views

script to Ediff two files in running gui Emacs?

I'm putting together a presentation that involves some live demos in the terminal. In one of the demos, I run a shell script that takes an input file, runs it through an Awk script, and generates a ...
ivan's user avatar
  • 1,968
4 votes
2 answers
2k views

Portable Emacs: Remapping user-emacs-directory

The Problem I want to install Emacs on a USB Flash Drive in a portable fashion, that is, Emacs should be able to be run from the UFD, once plugged on a device, without predefined paths to its ...
antonio's user avatar
  • 1,832
4 votes
1 answer
1k views

From an external script, open file and run some simple expression whether emacs already running or not

Context / initial need (works fine) I wrote and use a script that generates a file and uses emacsclient to edit it in an existing or new instance of emacs, in a new window. Similar to Set up Emacs ...
Stéphane Gourichon's user avatar
1 vote
1 answer
66 views

How to invoke Emacs from MS DOS prompt with a function with argument?

Inspired by the question Launch emacs with ediff-files (of ediff-directories) from command line and the answer https://emacs.stackexchange.com/a/3623/2609, I tried emacs --eval '(set-background-...
Name's user avatar
  • 8,037
13 votes
3 answers
5k views

Launch emacs with ediff-files (of ediff-directories) from command line

I would like to launch emacs to ediff either files or directories. For example, I'd like something like: emacs -f ediff-files file1 file2 But when I do this, it doesn't take file1 and file2 as the ...
Madeleine P. Vincent's user avatar
6 votes
1 answer
552 views

Preset search isearch-string from command line

I am trying to set isearch-string from the command line. The purpose is to have a Perl script start Emacs with a given search string, and go directly to the first line of the string and enter search ...
Håkon Hægland's user avatar
2 votes
1 answer
100 views

Behavior of '-e' option during emacs invocation

There command-line option -e behaves similar to the --eval option, but yet it is not the same. For example, of these two invocations, only the first one works: emacs --eval '(global-linum-mode)' ...
nispio's user avatar
  • 8,315