emacs allow primitive programming
Table of Contents
primitive action in emacs refers to:
- keybindings, which could include prefix(C,M).
so f1, j, C-c C-f, M-x org- screen TAB, f4…
1. easy programming
Programming and using programmed primitives in emacs is especially intuitive, due to easily accesible editor APIs, keyboard macro system, M-x (as well as global function definition) and keybinding system.
2. case of primitive programming
- when I need to convert a org-ref cite to a org-cite cite, I just record a keyboard macro of editing one, with f3 and f4, then use f4 to repeat it on every other.
- In my workflow I highlight pdf a lot, so I bound highlight function to “h”, so it’s more convenient than default C-c C-a h
- inserting screenshot into org file can be done manually by evoking system screenshot program, save it(thinking of a good file structure and filename), type its location, or by
org-screenshot-take
, which does all the above. This one comes with doom, and I used to use another that does essentially the same thing that I have written myself
3. merit
As selection of primitives would impact vicinity of state space, by allowing easy primitive programming, emacs allow its user to programme their vicinity with their activities, to:
- avoiding harmful/painful states
when you had to go through a lot of step, make decision on filename/file location just to insert a screenshot, programme it into one primitive of M-x org-screenshot-take
or a keybinding like SPC m s t
could effectively avoid all those pain
- shorten distance to rewarding states
screenshot: 5 steps -> 1 steps. screenshot is good. accomplishing goal of inserting screenshot is good.
Backlinks
emacs
Emacs is an editor featuring:
- an interactive elisp runtime that also controls the editor behaviour
- extensibility such that software code and user code are effectly the same language with the same privillage
- lots and lots of extension packages
- convenient keybinding system and command search
- org-mode
- doom emacs
- emacs allow primitive programming
- emacs follow-mode
- emacs themes
- emacs dash
- python notebook in emacs org-mode
- emacs tip: manual async
- selecting multiple item from completion in emacs
- .dir-locals.el
- emacs in batch
- emacs async