From: Yuriy Gomenyuk <law@freemail.com.ua>
To: community@altlinux.ru
Subject: Re: [Comm] mc - emacs (default)
Date: Wed, 26 Mar 2003 19:48:50 +0200
Message-ID: <3E81E802.7050607@freemail.com.ua> (raw)
In-Reply-To: <200303251150.h2PBoIJo094351@ns.asdg.ru>
Пушкин Сергей Алексеевич пишет:
> Однажды, в Tue, 25 Mar 2003 13:16:25 +0200
> Yuriy Gomenyuk запустил в Инет такого червя:
>
> YG> Здравствуйте, пожалуйста помогите решить вопрос:
> YG>
> YG> Хотел бы в mc просмотрщиком и редактором по умолчанию сделать
> YG> emacs (в текстовом режиме, запуская с параметром -nw ).
> YG>
> YG> Но когда отключаешь внутренний редактор - просмотрщик
> YG> автоматически вызывается vi.
> YG> Где и как прописать, чтобы вызывался emacs?
>
> export EDITOR=emacs
>
> Чтоб навсегда - прописать эту переменную в ~/.bash_profile
Спасибо, работает :)
Но только редактор. Какая переменная отвечает за вьювер (по F3
продолжает вызываться vi).
(пробовал по аналогии сделать export VIEWER=emacs, но не
получилось :)
Дополнительный вопрос:
Я хочу чтоб emacs вызывался в консольном режиме.
emacs для этого нужно запустить с ключом emacs -nw
Если открывать файл из командной строки: emacs -nw file.txt
то открывается так как мне нужно.
Если в прописывать export EDITOR=emacs -nw, то при открытии
консоль ругается:
bash: export: `-nw': not a valid identifier
Как прописать в ~/.bash_profile, чтобы в mc еmacs открывался в
консольном режиме?
(происывать в конфигурационных файлах emacs открытие по умолчанию
в консольном режиме не хочу, потому что хочу чтобы в командной
строке emacs file.txt открывался в оконном режиме.
--
С уважением,
Юрий Гоменюк.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Powered by Mozilla-mail 1.2.1 under ALT Linux Junior 2.0
next prev parent reply other threads:[~2003-03-26 17:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 11:16 Yuriy Gomenyuk
2003-03-25 11:50 ` Пушкин Сергей Алексеевич
2003-03-26 17:48 ` Yuriy Gomenyuk [this message]
2003-03-26 23:03 ` Sergey Sholokhov
2003-03-30 16:44 ` Yuriy Gomenyuk
2003-03-31 4:58 ` Пушкин Сергей Алексеевич
2003-03-27 3:02 ` Re[2]: " Evgeny Yugov
2003-03-25 11:57 ` Serhii Hlodin
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=3E81E802.7050607@freemail.com.ua \
--to=law@freemail.com.ua \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git