Debra Cameron - Learning GNU Emacs, 3rd Edition

Здесь есть возможность читать онлайн «Debra Cameron - Learning GNU Emacs, 3rd Edition» весь текст электронной книги совершенно бесплатно (целиком полную версию без сокращений). В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Год выпуска: 2004, ISBN: 2004, Издательство: O'Reilly Media, Жанр: Программы, Программирование, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

Learning GNU Emacs, 3rd Edition: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Learning GNU Emacs, 3rd Edition»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

GNU Emacs is the most popular and widespread of the Emacs family of editors. It is also the most powerful and flexible. Unlike all other text editors, GNU Emacs is a complete working environment—you can stay within Emacs all day without leaving.
, 3rd Edition tells readers how to get started with the GNU Emacs editor. It is a thorough guide that will also "grow" with you: as you become more proficient, this book will help you learn how to use Emacs more effectively. It takes you from basic Emacs usage (simple text editing) to moderately complicated customization and programming.The third edition of
describes Emacs 21.3 from the ground up, including new user interface features such as an icon-based toolbar and an interactive interface to Emacs customization. A new chapter details how to install and run Emacs on Mac OS X, Windows, and Linux, including tips for using Emacs effectively on those platforms.
, third edition, covers:
• How to edit files with Emacs
• Using the operating system shell through Emacs
• How to use multiple buffers, windows, and frames
• Customizing Emacs interactively and through startup files
• Writing macros to circumvent repetitious tasks
• Emacs as a programming environment for Java, C++, and Perl, among others
• Using Emacs as an integrated development environment (IDE)
• Integrating Emacs with CVS, Subversion and other change control systems for projects with multiple developers
• Writing HTML, XHTML, and XML with Emacs
• The basics of Emacs Lisp
The book is aimed at new Emacs users, whether or not they are programmers. Also useful for readers switching from other Emacs implementations to GNU Emacs.

Learning GNU Emacs, 3rd Edition — читать онлайн бесплатно полную книгу (весь текст) целиком

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Learning GNU Emacs, 3rd Edition», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

If you change your mind about deleting a buffer before typing x, you can unmark the buffer by going to the appropriate line and typing u. As a convenience, the Delkey also unmarks the previous buffer in the list. Why would you do this? Simple: dautomatically moves you down one line. If you mark a file for deletion and immediately change your mind, you can press a single Delrather than moving to the previous line and typing ufor unmark ).

To save a buffer, go to the line for the buffer you want to save and press s. The letter Sappears in the first column. Press xwhen you really want to save the buffer. Therefore, you can look at the buffer list, choose which buffers you want to delete and which you want to save, and then type xto do everything at once. Again, you can press uor Delto cancel saves if you change your mind.

One command that affects a buffer immediately when you type it is tilde ( ~). Typing ~marks a buffer as unmodified. In effect, this symbol tells Emacs not to save changes automatically (since the buffer is unmodified, Emacs has no reason to save changes with its auto-save feature). Of course, if you have made changes, the changes are still in the buffer; it's just that you're in essence "lying" to Emacs to say that no changes have been made. Also, if you change the buffer again after marking it unmodified, Emacs once again knows it has been modified and saves it automatically in a backup file. The backup filename (not coincidentally) has the format filename~ .

You can change a buffer's status from read-write to read-only and back again by pressing %. Pressing %changes the buffer's status immediately. Percentage signs appear on the mode line when a buffer is read-only. When you are editing, you can toggle a buffer between read-write and read-only by pressing C-x C-q, as we discussed earlier.

You can also use the buffer list to display multiple buffers in windows. To display one of the buffers in a full screen, move the cursor into the buffer list's window; use C-nand C-pto move to the line for the buffer that you want, and press 1(the number one). Emacs displays the buffer in a full-screen window.

If you want to display one of the buffers in place of the buffer list, you can press f. To put a buffer in another window (i.e., one not occupied by the buffer list), type o. Emacs displays the buffer in the other window and puts the cursor there. Pressing C-ohas a slightly different result; Emacs displays the buffer in another window but doesn't put the cursor there.

One final buffer display command remains. You can ask Emacs to display multiple buffers and have Emacs create windows for them dynamically. To select buffers to be displayed in windows, press m(for mark ) next to the buffers you want. Emacs displays a >next to the buffers you mark with m. To tell Emacs to display the buffers you've marked, press v. Emacs makes horizontal windows to display the buffers you've chosen.

To get rid of the *Buffer List*window, type C-x 0if you are in the buffer list window or C-x 1(the number one) if you are in another window. Table 4-2shows a summary of buffer manipulation commands.

Table 4-2. Buffer manipulation commands

Keystrokes Command name Action
C-x b BuffersSelect Named Buffer switch-to-buffer Move to the buffer specified.
C-xBuffersNext Buffer next-buffer Move to the next buffer in the buffer list.
C-x BuffersPrevious Buffer previous-buffer Move to the previous buffer in the buffer list.
C-x C-b BuffersList All Buffers list-buffers Display the buffer list.
C-x k kill-buffer Delete the buffer specified.
(none) kill-some-buffers Ask about deleting each buffer.
(none) rename-buffer Change the buffer's name to the name specified.
C-x s save-some-buffers Ask whether you want to save each modified buffer.

Table 4-3summarizes the commands for working with the buffer list.

Table 4-3. Buffer list commands

Keystrokes Action Occurs
C-n, Space, n, or Move to the next buffer in the list (i.e., down one line). Immediately
C-p, p, or Move to the previous buffer in the list (i.e., up one line). Immediately
d Mark buffer for deletion. When you press x
k Mark buffer for deletion. When you press x
s Save buffer. When you press x
u Unmark buffer. Immediately
x Execute other one-letter commands on all marked buffers. Immediately
Del Unmark the previous buffer in the list; if there is no mark, move up one line. Immediately
~ Mark buffer as unmodified. Immediately
% Toggle read-only status of buffer. Immediately
1 Display buffer in a full screen. Immediately
2 Display this buffer and the next one in horizontal windows. Immediately
f Replace buffer list with this buffer. Immediately
o Replace other window with this buffer. Immediately
m Mark buffers to be displayed in windows. When you press v
v Display buffers marked with m; Emacs makes as many windows as needed. Immediately
q Quit buffer list. Immediately

4.6 More About Windows

Depending on your requirements, you may want to work with side-by-side windows in addition to or instead of horizontal windows. For finer control, you may want to know how to size windows (and because they're not GUI windows, you can't do that with the mouse). [23]You may also want to know how to compare files between windows, a good feature for basic file comparison.

4.6.1 Creating Vertical or Side-by-Side Windows

To split the window vertically into two side-by-side windows, type C-x 3. You can execute this step repeatedly to create more side-by-side windows.

Type: C-x 3

Emacs creates two vertical windows When you create multiple vertical windows - фото 69

Читать дальше
Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Learning GNU Emacs, 3rd Edition»

Представляем Вашему вниманию похожие книги на «Learning GNU Emacs, 3rd Edition» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «Learning GNU Emacs, 3rd Edition»

Обсуждение, отзывы о книге «Learning GNU Emacs, 3rd Edition» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x