Emacs | Participants
|
- Statistics
- Participants
- Translate into Russian
- Translation result
- Translated in draft, editing and proof-reading required. Completed: 4%.
If you do not want to register an account, you can sign in with OpenID.
Emacs | ||
Emacs is a very powerful text editor. You can invoke Emacs by typing its name at the command line. | Emacs является очень мощным текстовым редактором. Вы можете вызвать Emacs, введя "emacs" в командной строке. | |
$ emacs | ||
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. | |
emacs.png | ||
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 "в фоне", чтобы командная строка оставалась доступной для других команд. | |
$ emacs & | ||
You may occasionally want to run Emacs directly in the terminal window. Use the -nw (no window) option for this. | Разумеется, вы можете открыть Emacs в окне терминала. Для этого укажите в командной строке ключ -nw. | |
$ emacs -nw | ||
You can load a file for editing at the time you start Emacs by giving the file name after the emacs command. | Вы можете указать файл для открытия ещё на стадии загрузки Emacs. Для этого путь к файлу указывается сразу за командой emacs. | |
$ emacs filename | ||
Screenshot_emacs_montage.office.fsf.org_1.png Basic editing commands | ||
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. | |
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). | |
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 сохраняет все изменения, сделанные вами в файле. Имя открытого файла показывается наверху окна. | |
C-x C-c (exit Emacs) | ||
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. |
