EMACS - El Primer Día
Published: 2023-10-29 11:40:52

# INTRODUCTION

```
sudo apt-get install emacs
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qjhy5u5u090fbks6bkf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sqx1izpfczfmzhmbsish.png)

```
control x + f 
```

> **Once you type this you will get the command to type , see the below screenshot.**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1c5c487u7mpdoyw622ad.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gqnf9rcdohd8ysxehmt8.png)

> **File name provided and a new file came in the terminal,**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n3jms7ynomv3zf0t6x16.png)

```
control x + s --> this will save the file
control x + c --> this will close the terminal
```

> **To open the file again , just repeat the same process.**

```
control x + f
give the file name starting two or three words , then a TAB
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/avrn7tyjd5gz24ijl6h9.png)

> **Updated the file with some lines by given below command.**

```
control x + s --> once you give this , you can see the WROTE in the bottom of the file , which means it got saved.
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tuj4lrskbr3b38vdygqr.png)

> **Now , you edited something but its not required to be saved . Then press only**

```
control x + c
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5m328d071qiddu6as76f.png)

> **you can see below its asking for what I need to do ?**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nai3k5ahc1inq3pt2k70.png)

> **pressed " n " then its asking what I need to do again . Tell me clearly yes or no.**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6872kvvft29jgabfkdf4.png)

> **Now lets delete the line,**

```
control + k
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/djx6kfraj1yxjfocdjo0.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/96zs899se0vh9b5ut5wo.png)

**_( Above line got deleted )_**

```
control x + u --> undo
```

> " the mark is not set now so there is no region " --> Getting this error when I do an UNDO command. [TBD]

> **Go to LAST LINE,**

```
Esc + >
Esc + <
```

> **Search a word,**

```
control + s 
( press the same command it will go to the next next word )
```

# What is ORG MODE ?

Life in PLAIN text.
A second brain.

```
control c + t --> TODO list
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/906mrkrc3r6y881dnoea.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2oijdmxgazhkydwfghl.png)


```
control c + t
TAB --> this is will expand and contract the TODO list
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ddlzwci9jg7mv8p6gj0.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rwprs66vreuvmefe1xgo.png)

```
Shift + Tab --> Expand ALL
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g97k025hvpfin9b3ppxk.png)

```
Alt + uparrow --> Change of Order
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51rney47ns0g484fontf.png)

```
TODO --> DONE
control c + t
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s48vyeqkmrdctek4okwy.png)

**_<u>Getting This DONE</u>_**

> **Giving DATE to the task or TODO list**

```
control c + s
Shift + Arrows --> To moved up & down for DATE
How to come out ? [TBD]
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y7e6zv6unde0leijbep2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/560fkw83imy02pq5f3sp.png)

> **Priority**

```
Shift + Uparrow
A,B & C --> Priority
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/avvj4ilr8dnxcerrnzvv.png)

> **Clock i.e START & END time**

```
Control c+x+i
Control c+x+o
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xxqu184vuugh0df900m9.png)

> **Cut, Copy & Paste**

Control + Space --> Select the content

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/97vrpakxg4h94xkcnicf.png)

```
Control + w --> Cut
Control + y --> Paste
Alt + w --> Copy
```

## List of Commands

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j22wn0fbyjt9e99opevs.png)

## Points to be Remembered

1. Book - Eat That Frog by by TRACY BRIAN.
2. https://intellij-support.jetbrains.com/hc/en-us/community/posts/206589835-How-to-mark-a-region-in-emacs-mode
3. https://www.fugue.co/blog/2015-11-11-guide-to-emacs.html


TO BE CONTINUED ...