In the last week we discussed more about Unix and a little about Emacs.Emacs is a text editor.It is faster, powerful, and simple in terms of usage because of its simple user interface.Emacs we use special key combinations and shortcuts (commands) to operate and edit.The commands generally involve the Ctrl key (abbreviated as C)  or the Alt key, known as Meta key (abbreviated as M).

-Basic editing commands

C-n Moving to the next line

C-p Moving to the previous line

C-f Moving one character forward

C-b Moving one character backward

M-f Moving one word forward

M-b Moving one word backward

C-a Moving to the start of a line

C-e Moving to the end of a line

-Now I want to say  my presentation topic Emacs calendar.

-Calendar Mode

Emacs provides the functions of a desk calendar, with a diary of planned or past events. To enter the calendar, type M-x calendar, this displays a three-month calendar centered on the current month, with point on the current date.The commands for movement in the calendar buffer parallel the commands for movement in text. You can move forward and backward by days, weeks, months, and years.

C-f Move point one day forward (calendar-forward-day).

C-b Move point one day backward (calendar-backward-day).

C-n Move point one week forward (calendar-forward-week).

C-p Move point one week backward (calendar-backward-week).

M-} Move point one month forward (calendar-forward-month).

M-{ Move point one month backward (calendar-backward-month).

C-x ] Move point one year forward (calendar-forward-year).

C-x [ Move point one year backward (calendar-backward-year).

-Specified Dates

Calendar mode provides commands for moving to a particular date specified in various ways.

g d Move point to specified date (calendar-goto-date).

o Center calendar around specified month (calendar-other-month).

. Move point to today's date (calendar-goto-today).

p d Display day-in-year (calendar-print-day-of-year).

q Exit from calendar (exit-calendar).

g d (calendar-goto-date) prompts for a year, a month, and a day of the month, and then moves to that date. Because the calendar includes all dates from the beginning of the current era, you must type the year in its entirety; that is, type `1993'.

-Counting Days

the number of days in the region, type M-= (calendar-count-days-region). The numbers of days printed is inclusive; that is, it includes the days specified by mark and point.

M-= Display the number of days in the current region

-Holidays

The Emacs calendar knows about all major and many minor holidays, and can display them.

h Display holidays for the selected date (calendar-cursor-holidays).

x Mark holidays in the calendar window (mark-calendar-holidays).

u Unmark calendar window (calendar-unmark).

a List all holidays for the displayed three months in another window         (list-calendar-holidays).

To get even more detailed information, use the a command, which displays a separate buffer containing a list of all holidays in the current three-month range. You can use SPC in the calendar window to scroll that list.

-Times of Sunrise and Sunset

Special calendar commands can tell you, to within a minute or two, the times of sunrise and sunset for any date.

S Display times of sunrise and sunset for the selected date (calendar-sunrise-sunset).

-Phases of the Moon

These calendar commands display the dates and times of the phases of the moon (new moon, first quarter, full moon, last quarter). This feature is useful for debugging problems that "depend on the phase of the moon."

M Display the dates and times for all the quarters of the moon for the three-month period shown (calendar-phases-of-moon).

-Git

Git helps developers by keeping track of the history of their codes files by storing them in versions on its own server repository i.e. GitHub. Git has the functionality, performance, security and flexibility that most teams and individual developers need.

Here are some basic git commands.

  • git init will create a new local GIT repository. The following Git command will create a repository in the current directory:

     git init

  • git status displays the list of changed files together with the files that are yet to be staged or committed.

git status

  • git add is used to add files to the staging area. For example, the basic Git command is.

git add <file.txt>

  • git commit will create a snapshot of the changes and save it to the git directory.

git commit –m “Initial Commit”

Stay tuned for next week, Thank You.