The text editor emacs was introduced to us on second week. Basically for a programmer , an editor must be his important tool. Emacs is such a powerful editor providing typed commands and special key combinations that let us add, delete, insert, and manipulate words, letters, lines, and other units of text. Emacs offers a much longer list of commands and requires a considerable investment in learning.
Since it was built on unix, some of the key commands used in bash are also used in emacs . Two important keys used are CLT and ALT . Ctrl is shown in short form as “C”. Alt key is referred to as “meta M” key in emacs .
Some of the key commands are listed below
To perform this function | Use these keys -------------------------------------|--------------------------------- Moving to the next line | C-n (n for Next) Moving to the previous line | C-p (p for Previous) Moving one character forward | C-f (f for Forward) Moving one character backward | C-b (b for Backward) Moving one word forward | M-f (f for Forward) Moving one word backward | M-b (b for Backward) Moving to the start of a line | C-a Moving to the end of a line | C-e (e for End) Moving to the start of a sentence | M-a Moving to the end of a sentence | M-e (e for End) Moving one page down | C-v (or PgDn) Moving one page up | M-v (or PgUp) Moving to the beginning of the file | M-< (Alt + Shift + "<") Moving to the end of the file | M-> (Alt + Shift + ">"
We had presentation based on emacs .My topic was about the Remember mode.
“Remember” is a mode for remembering data.
Type M-x remember. The *Remember* buffer should be displayed.
Type in what you want to remember. The first line will be treated as the headline, and the rest of the buffer will contain the body of the note.
Type C-c C-c (
remember-finalize) to save the note and close the *Remember* buffer.
remember-finalize saves the note in ~/emacs.d/notes. You can edit it now to see the remembered and timestamped note. You can edit this file however you want. New entries will always be added to the end.
To remember a region of text, use the universal prefix. C-u M-x remember displays a *Remember* buffer with the region as the initial contents.
As a simple beginning, you can start by using the Text File backend, keeping your ~/.emacs.d/notes file in outline-mode format, with a final entry called ‘* Raw data’. Remembered data will be added to the end of the file. Every so often, you can move the data that gets appended there into other files, or reorganize your document.
Thats all about the second week.
Stay tuned ......