Table of Contents
1. Emacs Commands I forget
- Go to a specific line: M-x goto-line
- Display line number in the mode line: M-x line-number-mode
- Display the current line: M-x what-line
- Display column number in the mode line**: M-x column-number-mode
1.1. Let eww be the default browser for Emacs
(setq browse-url-browser-function 'eww-browse-url)
1.2. Help command for the current function
- C-h-m
- C-h general help
1.3. Buffer commands
- Kill a buffer with C-x-K very usefull
- move between buffers with C-x-left/right arrow - very useful
- new buffer with C-x b
1.4. Org-publish workflow in on my machine
- Create or edit an org file in Org directory- respect the file hierarchy
- Convert to html with Org export
- Publish that file only with Org publish
- Use rsync command to move file to server . Shortcut in bashrc is "geffle"
1.5. Not Emacs but useful
1.5.1. How to move ssh from one machine to another
Move ~/.ssh to the new machine and run ssh-add. DONE!
LONG ANSWER:
In the old machine, take the folder ~/.ssh to an USB drive, or to any other storage you like. On the new machine, put the folder under ~ aka /home/$USER. Run ssh-add, on the new machine done.