From: "Sergey Sholokhov" <hun7er@sutd.ru> To: community@altlinux.ru Subject: Re: [Comm] mc - emacs (default) Date: Thu, 27 Mar 2003 02:03:37 +0300 Message-ID: <87n0jhwx12.fsf@sutd.ru> (raw) In-Reply-To: <3E81E802.7050607@freemail.com.ua> (Yuriy Gomenyuk's message of "Wed, 26 Mar 2003 19:48:50 +0200") Yuriy Gomenyuk <law@freemail.com.ua> writes: >> YG> Здравствуйте, пожалуйста помогите решить вопрос: >> YG> YG> Хотел бы в mc просмотрщиком и редактором по умолчанию сделать >> YG> emacs (в текстовом режиме, запуская с параметром -nw ). >> YG> YG> Но когда отключаешь внутренний редактор - просмотрщик YG> >> автоматически вызывается vi. >> YG> Где и как прописать, чтобы вызывался emacs? >> export EDITOR=emacs >> Чтоб навсегда - прописать эту переменную в ~/.bash_profile > > Спасибо, работает :) > > Но только редактор. Какая переменная отвечает за вьювер (по F3 > продолжает вызываться vi). export PAGER={Вьювер} > (пробовал по аналогии сделать 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 открывался в > консольном режиме? > export EDITOR='emacs -nw' > (происывать в конфигурационных файлах emacs открытие по умолчанию > в консольном режиме не хочу, потому что хочу чтобы в командной > строке emacs file.txt открывался в оконном режиме. > > > -- -- ... now playing: silence... WBR, Sergey Sholokhov. | ICQ : 72994428 < GNU/Linux system inside > | mail: hun7er@sutd.ru H U N 7 E R | http://www.livejournal.com/~hun7er/
next prev parent reply other threads:[~2003-03-26 23:03 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 2003-03-26 23:03 ` Sergey Sholokhov [this message] 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=87n0jhwx12.fsf@sutd.ru \ --to=hun7er@sutd.ru \ --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