Questions tagged [invocation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
106 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 ...
4
votes
2answers
933 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 ...
4
votes
1answer
641 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 ...
1
vote
1answer
44 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-...
7
votes
2answers
2k 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 ...
6
votes
1answer
305 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 ...
2
votes
1answer
80 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)' ...