ungleich-learning-circle/youngjin.han/learning-node02-2020.org

6.4 KiB

2020-04-23

Organisation #1: org-mode introduction

Lecture content
Install emacs
Install org-mode
Create a function that opens ~/learning.org in your ~/.emacs
Bind that function to "f3" (configure it in .emacs)
Create a new item named "2020-04-10"
Create a sub item "ungleich learning circle"

2020-04-24

Organisation #2: Creating, managing and sharing with "magit"

Lecture content
Install "magit" for emacs
Bind C-x g to open magit-status in ~/.emacs
Create a new directory ~/ungleich-learning-circle/ (with emacs)
Use C-h b in dired mode to find out how to
Create a sub directory ~/ungleich-learning-circle/YOURNAME/ (with emacs)
Move your previously created learning.org file into ~/ungleich-learning-circle/YOURNAME/ (with emacs)
Initialise it with git (with magit)
Create the repo "ungleich-learning-circle" on code.ungleich.ch under your username
Add your remote on code.ungleich.ch to your local git repo with magit
Push your repo
Add a new remote of a another participant
Move your ~/learning.org to ~/notes
Commit that file with magit
Push the repo with magit
Merging the remote repo with the command line
End result: everyone has everything of everyone else

2020-04-27

Organisation #3: Managing your emails

Lecture content
Objective
Be able to manage all your mails in mu4e
Description
All email is synchronised using isync/mbsync
Email is indexed with mu (xapian backend)
Email is viewed in mu4e
All new emails arrive in the inbox
Steps
Install mu4e
Start mu4e in emacs
Configure mbsync for your ungleich mail account
Synchronise all mails into ~/Maildir/ungleich
This structure leaves room for other mail accounts, like ~/Maildir/gmail
Verify that mbsync synchronises the mail
Index mails using `mu` on the command line (only first time)
Configure mu4e to get email with mbsync -a
Configure mu4e to "archive" emails into ~/Maildir/ungleich/YEAR/
This gives you a good performance / organisation for the next decades
Configure mu4e/emacs for sending emails
Send other participants an email via mu4e
Verify that it arrives
"Archive" it afterwards

2020-04-29

Organisation #4: Organising yourself

Lecture content
Objective: have a todo list based on org mode
Steps
Configure the "org-directory" to be ~/ungleich-learning-circle/USERNAME/
This is important as it will be used by the todo function later
Extend your function from the organisation #1 session
Instead of opening a fixed file, we include two variable parts:
The hostname of the machine
The year
Pressing F3 should open ~/ungleich-learning-circle/USERNAME/learning-$(hostname)-$(year).org
we call this "your personal agenda"
Configure mu4e to create a org-mode tasks from an email
Store these tasks in ~/ungleich-learning-circle/USERNAME/todo.org
Configure emacs to open the "org-agenda" with "C-c a"
List all TODO entries
List the agenda of the day
List the agenda of the week
Bind F8 to open the "org-todo-list"
Create some sample tasks in it
From now on, maintaining tasks should be
Pressing F3 to open your personal "logfile"
Adding a TODO item
Pressing F8 to see the tasks with priorities
Bonus tasks
Configure mu4e to store org-mode tasks in …/todo-$(hostname)-$(year).org

2020-05-01

Organisation #5: Emacs refresher

Lecture content
Objective: get confident with emacs commands
Find out and document how to do the following steps
DONE Search for something forward C-s

CLOSED: [2020-05-01 금 21:40]

DONE How to continue searching C-s C-s

CLOSED: [2020-05-01 금 21:43]

DONE Search for something backward C-r

CLOSED: [2020-05-01 금 21:55]

DONE Search for regular expressions instead of string (forward, backward) C-M-s C-M-r

CLOSED: [2020-05-01 금 22:25]

DONE Go to the beginning of the line C-a

CLOSED: [2020-05-01 금 22:16]

DONE Go to the end of the line C-e

CLOSED: [2020-05-01 금 22:16]

DONE Delete a word in front (to the right of the cursor) M-d

CLOSED: [2020-05-01 금 22:17]

DONE Delete a word in back (to the left of the cursor) M-BackSpace

CLOSED: [2020-05-01 금 22:18]

DONE List all "occurences" of a word in a file M-s o

CLOSED: [2020-05-01 금 22:53]

You can copy above instructions into an emacs buffer
And test it by showing all occurences of the word "Search"
DONE Search (GREP) for a word in all files in a directory RECURSIVELY M-x rgrep

CLOSED: [2020-05-01 금 22:46]

DONE Save the CURRENT buffer C-x C-s

CLOSED: [2020-05-01 금 21:55]

DONE Save ALL open files C-x-s

CLOSED: [2020-05-01 금 22:22]

DONE Split the window/buffer vertically C-x 2

CLOSED: [2020-05-01 금 21:48]

DONE Split the window/buffer horizontally C-x 3

CLOSED: [2020-05-01 금 21:48]

DONE Switch between the different windows C-x o

CLOSED: [2020-05-01 금 21:48]

DONE Close all buffers besides the active one C-x 1

CLOSED: [2020-05-01 금 21:47]

Don't kill it!
DONE Close only the active buffer C-x 0

CLOSED: [2020-05-01 금 21:54]

Don't kill it!
DONE Kill the active buffer C-x k

CLOSED: [2020-05-01 금 21:44]

DONE Describe/Explain the difference between closing and killing

CLOSED: [2020-05-01 금 22:09]

closing is that emac do not display the buffer. and the contents on the buffer are kept on behined screen.
killing is that emac delete the buffer. and if contents are not stored, it is losted
DONE Switch between buffers that are not shown C-x b

CLOSED: [2020-05-01 금 21:51]

DONE Document two very similar, but slightly different ways

CLOSED: [2020-05-01 금 23:28]

C-x b is that the selected buffer is displayed on the focused window
C-x 4 b is that the selected buffer is displayed on the new window
Outcome
DONE Document all above commands in your learning org sheet

CLOSED: [2020-05-01 금 23:28]

DONE Share your documentation at the end of the session (not before)

CLOSED: [2020-05-01 금 23:28]