Skip to content

Latest commit

 

History

History
138 lines (132 loc) · 7.96 KB

notes.org

File metadata and controls

138 lines (132 loc) · 7.96 KB

My humble attempt to learn the software that trancends time

Emacs

Commands

TitleCommand
Duplicate a lineC-a C-Space C-e M-w Cmd-v
Emmet Auto CompleteC-j
Transpose characterC-t
Delete word from cursor to start of wordC-Backspace
Enter/ Exit DarkroomC-c d

Unofficial docs, might be better than official ones

Setup Straight.el ?

I have started looking into elisp seriously. Might be helpful to pull packages directly from Github https://github.crookster.org/switching-to-straight.el-from-emacs-26-builtin-package.el/

Key bindings

I want to learn how to do move, copy, paste, and replace operations. Most of my time as a developer is spent on modifying text. I think I should be good at it

write a blog post because the best way to learn is to teach

Join the evil side? Let’s do it.

Pros
With vim, my left hand will be at more ease since I don’t need to press C- for everything
Cons
Duplicating lines
It’ 5 keys in emacs: https://stackoverflow.com/questions/88399/how-do-i-duplicate-a-whole-line-in-emacs3 letters in vim: https://www.vimfromscratch.com/articles/how-to-copy-and-paste-a-line-in-vim/

Setup Literate Programming for emacs.d?

Deft mode for searching the notes easily

Setup helm mode - Settled on swiper instead

Setup lsp mode

Working config -> clojure-emacs/cider#2747

Setup ivy mode

Ivy is a replacement for ido and isearch

The fact you can see all isearch candidates on the same window is pretty cool.

I’m sure there is more to this package

How does emacs work under the hood?

Like org mode renders something but the actual typing is different. How is emacs able to handle this? What is this concept called?

Org Mode

Learn how to go into zen mode, ie. gutters on both ends

Chose darkroom, need to bind switching to a shortcut

Bound switching to darkroom to f1

Move darkroom to straight.el

How to add metadata like date to specific headings?

Properties are added using the :PROPERTIES: key

Properties can be added to any headin

How to set custom fonts for org mode?

Kinda done, but I realized that I like mononspaced color font

Add auto ids for headings

Auto ids will help you generate a graph in future

But since org mode can be easily parse, can’t you just add ids later?

Well my friend, ids now will help you create roam like links

Try to figure out how agenda works

I have multiple todos in this TimeMachine folder

Learn how to enter Titles, Tags, and other metadata, using short cuts

My todos dont get metadata

Explore org as an inspiration to write the z-protocol

You’ll probably need to Read the manual https://orgmode.org/manual/index.html

And while you are at it, maybe create blog posts so it makes learning for others easy

How to get images in org mode?

How to add references?

How to convert a heading to a file?

Sometime I might write something, like in my journal, that deserves more attention. How do I convert that into a file?

How to generate table of contents?

Make a personal guide to writing org docs

I want to ultimately publish everything here as a second brain

Find a way to handle private files and sections

Maybe start adding an id to all headings so it makes it easy to add internal links

Making an item jump from one column to other

I solved it by using narrowing, just narrow the table to the single row with C-x n e and apply M-<Right> and then widen with C-x n w.

Commands map

TaskCommandNotes
Convert text to heading and backC-c *
Add tagsC-c C-qFile level tags are added using #:FILETAGS:
Add timeC-u C-c .
Cycle Todo StatusC-c C-t
View AgendaC-a
ExportC-c C-e
Add propertyC-c C-x pWith cursor on heading
Delete propertyC-c C-c dWith cursor on PROPERTIES
Add linkC-c C-l
Add structure from templateC-c C-,Add quotes, titles etc
Focus on on item (heading, row, etcC-c n e
Get out of focus modeC-c n w

Darkroom

Adds gutters to both sides

(define-key map (kbd "C-M-+") 'darkroom-increase-margins)
(define-key map (kbd "C-M--") 'darkroom-decrease-margins)

Use f1 to go in and out of darkroom mode

Evil mode

There is too much info here, relevant if you want to learn the internals, but it’s not a getting started tutorial

This might be good if you want to become an evil hacker but it doesn’t make sense for beginners

There are dozens of Vim references online, but most of them either go ninja straight away, or start basic and don’t go much deeper.

Commands Map

TaskCommandNotes
Delete a linedd
Add a newline2o-esc2 could be any number
Delete a charx
Find and replace text:1,10s/find/replace1 is start line, 10 is end line, $ for end of doc
Copy a lineyy