Computing | computingFreedom | Build | Picolisp | Picolisp Machine | Pil Sources | Linux | BASH | C-Programmming | Operating Systems | Javascipt | Emacs | vim | Pharo Smalltalk | Computer Security | Python | The Compiler | Identifiers | Literals | storage_linkage | Networking
Emacs Notes
Start an emacs server.
systemctl --user enable emacs
Close an emacs client, see delete-frame
Copy emacs text to the clipboard:
(custom-set-variables '(x-select-enable-clipboard t))
(global-set-key "\C-w" 'clipboard-kill-region)
(global-set-key "\M-w" 'clipboard-kill-ring-save)
(global-set-key "\C-y" 'clipboard-yank)
2{Notes from Mastering Emacs}
In Emacs, the buffer is the data structure.
Useful tips
Use ‘C-x ESC ESC’ (‘repeat-complex-command’)
Navigating Parenthesis
C-M-n forward-list Move forward over a parenthetical group
C-M-p backward-list Move backward over a parenthetical group
C-M-f forward-sexp Move forward over a balanced expression
C-M-b backward-sexp Move backward over a balanced expression
C-M-k kill-sexp Kill balanced expression forward
C-M-SPC mark-sexp Put the mark at the end of the sexp.
Scale or Zoom Text
(text-scale-adjust 1) C-x C-= or C-x C-+ Increase text size by one step
(text-scale-adjust -1) C-x C– Decrease text-size by one step
Setting Fonts
Links
Record Macros
- Record: ctrl+x ( or ‘q’ in evil mode
- Perform any actions to record
- Stop recording by pressing ctrl+x or ‘q’ in evil mode)
- Play: ctrl+x e
Naming Macros
- Start: Ctrl+x Ctrl+k n
- Give name-of-macro, and press ENTER
- Play: M-x name-of-macro
Tabs and Spaces
