From: "Francis Moreau" <francis.moro@gmail.com>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to open a file in sh-mode
Date: Thu, 14 Aug 2008 13:36:44 +0200 [thread overview]
Message-ID: <38b2ab8a0808140436k2603feaegdf234af24d6607cd@mail.gmail.com> (raw)
In-Reply-To: <48A41506.1010806@gmail.com>
On Thu, Aug 14, 2008 at 1:20 PM, Lennart Borgman (gmail)
<lennart.borgman@gmail.com> wrote:
> Francis Moreau wrote:
>>
>> yes that would be possible, but I fail to understand why I can't start
>> emacs in a specific
>> mode from the command line.
>>
>> IOW why can't I simply do ?
>>
>> $ emacs -f sh-mode FOO
>
> Because you are doing it in the wrong order. sh-mode will apply to the
> current buffer. Try
>
> $emacs FOO -f sh-mode
>
> But ... - do you really want to do this? It means you are using a new eamcs
> instance for every file.
>
So you mean that I need to this:
$ cat > emacs-ui-is-dumb.sh<<EOF
#! /bin/sh
file=$1; shift
emacs "$@" $file
EOF
and do:
$ export FCEDIT="emacs-ui-is-dumb.sh"
--
Francis
next prev parent reply other threads:[~2008-08-14 11:36 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-14 7:53 How to open a file in sh-mode Francis Moreau
2008-08-14 8:16 ` Henrik Austad
2008-08-14 9:03 ` Francis Moreau
2008-08-14 10:03 ` Henrik Austad
2008-08-14 10:06 ` Francis Moreau
2008-08-14 11:17 ` David Hansen
2008-08-14 11:36 ` Henrik Austad
2008-08-14 11:51 ` Francis Moreau
2008-08-14 11:57 ` Lennart Borgman (gmail)
[not found] ` <mailman.16667.1218708430.18990.help-gnu-emacs@gnu.org>
2008-08-14 12:24 ` Giorgos Keramidas
2008-08-14 13:01 ` Francis Moreau
2008-08-14 13:27 ` Giorgos Keramidas
2008-08-14 13:48 ` Francis Moreau
2008-08-14 14:23 ` Giorgos Keramidas
2008-08-14 8:26 ` David Hansen
2008-08-14 9:04 ` Francis Moreau
2008-08-14 9:23 ` Thierry Volpiatto
2008-08-14 9:34 ` Francis Moreau
2008-08-14 10:58 ` Peter Dyballa
2008-08-14 11:02 ` Francis Moreau
2008-08-14 11:20 ` Lennart Borgman (gmail)
2008-08-14 11:36 ` Francis Moreau [this message]
2008-08-14 11:46 ` Lennart Borgman (gmail)
2008-08-14 12:06 ` Peter Dyballa
2008-08-14 12:22 ` Francis Moreau
[not found] <mailman.16658.1218700648.18990.help-gnu-emacs@gnu.org>
2008-08-14 8:28 ` Sebastian Kaps
2008-08-14 10:29 ` Xah
2008-09-11 1:35 ` David Combs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38b2ab8a0808140436k2603feaegdf234af24d6607cd@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.