Emacs

Адам Гайд, “Emacs”, public translation into Russian from English More about this translation.

See also 117 similar translations

Translate into another language.

Participants

artobstrel95504 points
MaxPv19 points
Mirray9 points
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next
1 2

Emacs

Emacs

History of edits (Latest: MaxPv 2 years, 7 months ago) §

Emacs is a very powerful text editor. You can invoke Emacs by typing its name at the command line.

Emacs является очень мощным текстовым редактором. Вы можете вызвать Emacs, введя "emacs" в командной строке.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

$ emacs

$ emacs

History of edits (Latest: MaxPv 2 years, 7 months ago) §

If you are using a typical graphics-based GNU/Linux distribution, this command will open a new window with Emacs running in that new window.

Если вы используете дистрибутив с графической средой, эта команда откроет окно графического интерфейса Emacs.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

emacs.png

Рис. 1. Интерфейс Emacs.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

Emacs is an editor that is sufficiently powerful that many users open an Emacs session soon after turning their computer on and leave it open for the duration of their computing endeavor. If you plan to have Emacs running for an extended time, it is helpful to run Emacs in the background so that the command line becomes available for another command.

Emacs - настолько мощный и богатый по возможностям текстовый редактор, что многие пользователи держат Emacs постоянно запущенным, включая его в начале сессии и оставляя до конца своей работы с компьютером. Если вы планируете поступать так же, запустите Emacs "в фоне", чтобы командная строка оставалась доступной для других команд.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

$ emacs &

$ emacs &

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

You may occasionally want to run Emacs directly in the terminal window. Use the -nw (no window) option for this.

Разумеется, вы можете открыть Emacs в окне терминала. Для этого укажите в командной строке ключ -nw.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

$ emacs -nw

$ emacs -nw

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

You can load a file for editing at the time you start Emacs by giving the file name after the emacs command.

Вы можете указать файл для открытия ещё на стадии загрузки Emacs. Для этого путь к файлу указывается сразу за командой emacs.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

$ emacs filename

$ emacs filename

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

Screenshot_emacs_montage.office.fsf.org_1.png Basic editing commands

Рис. 2. Основные команды редактирования.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

Once Emacs is running, there are a number of basic editing commands you can use. In most of this book, outside if this Emacs chapter, we use a notation like Ctrl-x to denote depressing the 'Ctrl' (Control) key, then pressing the 'x' key while 'Ctrl' is depressed, then releasing both keys. In this Emacs chapter, we employ the notation used in the Emacs documentation, which abbreviates Ctrl-x as C-x. C-x C-f (load file into buffer)

Как только Emacs запущен, вы можете использовать основные команды редактирования. В этой книге (не считая этой главы) для записи команд мы будем использовать нотацию вида Ctrl-x. Эта запись обознаяает, что сначала надо нажать клавишу Ctrl, затем x, затем отпустить обе клавиши. В этой главе мы будем придерживаться нотации, используемой авторами официальной документации. В такой нотации Ctrl-x запишется как C-x.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

The command C-x C-f (press the 'Ctrl' key, press and release 'x', press and release 'f', release 'Ctrl') loads a file on disk into an Emacs buffer for editing. You will be prompted for the name of the file to load. You may then make changes to the buffer by typing and by using other Emacs commands. The buffer will not be saved to file on disk until you specifically request it with, for example, the C-x C-s command. C-x C-s (save buffer to file)

Команда C-x C-f (нажать Ctrl, нажать и отпустить x, нажать и отпустить f, отпустить Ctrl) загружает файл находящийся на диске в Emacs. Вам будет предложено ввести название файла. Затем вы можете редактировать загруженный файл, используя клавиатуру, инструменты и возможности Emacs. Изменения не будут внесены в файл на диске, пока вы особо не попросите об этом Emacs (например, командой C-x C-s).

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

The command C-x C-s saves the current Emacs buffer to disk as the currently named file. The name of the file is located on a bar at the bottom of the window.

Команда C-x C-s сохраняет все изменения, сделанные вами в файле. Имя открытого файла показывается наверху окна.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §

C-x C-c (exit Emacs)

C-x C-c (Выход из Emacs)

History of edits (Latest: Mirray 2 years, 7 months ago) §

This command exits Emacs. If buffers remain that are unsaved, Emacs will ask you whether you want to save them. C-h t (start the Emacs tutorial)

Эта команда закрывает Emacs. Если остались несохраненные изменения, Emacs спросит вас, хотите ли вы их сохранить. Команда C-h t открывает учебник по Emacs.

History of edits (Latest: artobstrel95 2 years, 7 months ago) §
Pages: ← previous Ctrl next
1 2