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», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

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

Интервал:

Закладка:

Сделать

Type: C-x r k

The rectangle is deleted its in a special rectangle kill buffer Once again - фото 136

The rectangle is deleted; it's in a special rectangle kill buffer.

Once again, when you mark a rectangle, you put the cursor on the upper-left corner, set the mark, then move to the lower-right corner of the rectangle and over one more space. Emacs expects rectangles to be rectangles. If necessary, it pads an area with spaces to make up the straight line on the right side.

You can move anywhere on the screen and reinsert the rectangle last killed with the yank-rectanglecommand, C-x r y. To put the "Hours" column on the right side of the table, we move the cursor following the cell phone column.

Place the cursor following Celland press M-10 Spaceto move to a good location to paste the "Hours" column:

Move the cursor to where we want to reinsert the rectangle Type Cx r y - фото 137

Move the cursor to where we want to reinsert the rectangle.

Type: C-x r y

Emacs inserts the rectangle we killed earlier Emacs inserts the rectangle - фото 138

Emacs inserts the rectangle we killed earlier.

Emacs inserts the rectangle exactly where you tell it to. We moved past the cell phone column and then added some space between the cell phone and hours columns. Otherwise, Emacs would have blithely inserted the hours column into the middle of the cell phone column. Note that there's no equivalent of the kill ring for rectangles. You can yank only the most recent rectangle. [38]

Killing and yanking rectangles requires practice. Once you get the hang of the procedure, it is an easy way to edit tables and other column-dependent material.

A few other commands create blank rectangles. For example, let's say we want to put four more spaces between the cell phone and hours columns. To do this, we set the mark, move to the bottom of the column, move forward four spaces, then type C-x r o(for open-rectangle). This command inserts a blank rectangle and pushes the remaining text to the right.

Move the cursor to the Hin Hoursand type C-Space

Emacs sets the mark at the upperleft corner of the rectangle Now we need to - фото 139

Emacs sets the mark at the upper-left corner of the rectangle.

Now we need to define the amount of space we want to insert. Move down to the bottom of the rectangle (the "Alvin" line) and then move to the hyphen between 6:00and 3:00.

Move the cursor following 6:00.

The lower right corner of the rectangle is defined Finally type Cx r oto add - фото 140

The lower right corner of the rectangle is defined.

Finally, type C-x r oto add the new space to the table.

Type C-x r o

Emacs inserts a blank rectangle that is four spaces wide It moves the rest of - фото 141

Emacs inserts a blank rectangle that is four spaces wide. It moves the rest of the table to the right.

The clear-rectanglecommand wipes out text, leaving a blank rectangle in its place. It's just as though you had erased a column on a blackboard. Like the blackboard column, the text column that is wiped out is gone, not stored in the rectangle kill buffer. To continue with our example, let's say that after reviewing the schedule, all those involved agreed that they'd rather not have their cell phones listed.

Move the cursor to the Cin Celland type C-space.

The upperleft corner of the rectangle to be cleared is marked Move to the - фото 142

The upper-left corner of the rectangle to be cleared is marked.

Move to the space following the last phone number and type: C-x r c

The clearrectanglecommand removes the Cell Phone column and leaves a blank - фото 143

The clear-rectanglecommand removes the "Cell Phone" column and leaves a blank space in its place.

As you can see, the spacing of our table still isn't perfect; you'd probably want to use the delete-rectanglecommand [39]to delete the extra space between the second and the third columns. To delete the blank space without storing it, start by moving the cursor to the space following the longest email address and press C-Spaceto set the mark, then move to the opposite corner of the box you want to delete and type C-x r d.

On the header line, move to the column after the longest email address and press C-Space

The upperleft corner of the rectangle to be deleted is marked Move a few - фото 144

The upper-left corner of the rectangle to be deleted is marked.

Move a few spaces before 6:00 on the last line and type C-x r d

The deleterectanglecommand deletes the blank space If youre doing some - фото 145

The delete-rectanglecommand deletes the blank space.

If you're doing some really fancy table editing, being able to store several rectangles is helpful. That way, you can have every column as a rectangle, as well as having a rectangle for the exact amount of blank space to put between each column. You can store rectangles in registers by typing C-x r r r where r is any alphanumeric character, including punctuation. To insert a rectangle you've stored, type C-x r i r . Registers don't persist between sessions.

Table 7-5lists rectangle commands.

Table 7-5. Rectangle commands

Keystrokes Command name Action
C-x r k kill-rectangle Delete a rectangle and store it.
C-x r d delete-rectangle Delete a rectangle and do not store it.
C-x r y yank-rectangle Insert the last rectangle killed.
C-x r c clear-rectangle Using spaces, blank out the area marked as a rectangle and do not store it.
C-x r o open-rectangle Insert a blank rectangle in the area marked.
C-x r r r copy-rectangle-to-register Copy rectangle to register r (where r is any character) .
C-x r i r insert-register Insert rectangle from register r (where r is any character).
( none ) delete-whitespace-rectangle If a rectangle includes initial whitespace, deletes it, narrowing rectangle.
C-x r t string Enter string-rectangle Change contents of marked rectangle to string (if string is narrower or wider than rectangle, dimensions change accordingly).
( none ) string-insert-rectangle Prompts for string and inserts rectangle.

7.5.1 CUA Rectangle Editing

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

Интервал:

Закладка:

Сделать

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

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


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

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

x