Some parts are blatantly copied from the official emacs documentation. This page is meant to be a collection of notes so I won't have to go over the entire emacs documentation every time again.
(https://www.gnu.org/software/emacs/manual/html_node/emacs/)
C-u C-c C-k copy filename with path C-c C-k copy filename only
C-x @ s Adds super flag to next key C-x @ a Adds alt flag to next key M-q fill-paragraph
C-x h Mark all text C-x tab then shift left,right to move region around C-x C-v Reload current file Transpose a region - Create 2 marked regions C-SPC C-SPC Mark1 C-SPC C-SPC Mark1 Mark the other region as usual C-SPC Mark as usual transpose-regions helm-mark-ring M-: (setq mark-ring ()) Clears the mark ring variable C-u SPC Pop something off the mark ring
C-M right Jump to end of sexp C-M left Jump to beginning of sexp C-x C-b open buffer C-x o go from buffer to buffer C-x 0 delete current buffer C-x 1 delete other buffer
alt-x f (set column at which to break) alt-x auto-fill-mode alt-x electric-indent-mode (disable autoindenting) alt-x visual-line-mode (break lines visually) alt-x toggle-read-only alt-x global-font-lock-mode (disable colors)
zone-mode activates zone editing, auto increments serial when saving C-x C-s increments serial manually
;; necessary for the repo servers to talk to me
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(package-initialize)
(require 'package)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
# refresh the package cache
alt-x package-refresh-contents
(setq column-number-mode 1)
(setq inhibit-splash-screen t)
alt-x python-mode # enable basic python syntax highlighting alt-x flymake-mode # enable syntax checking alt-x flymake-show-diagnostics-buffer # show real time error loggin in separate buffer
C-c C-r f Will format the code according to PEP8 standards
C-c [ Add file to list of todo - files (agenda). C-u Prefix key, press twice for 2 prefixes C-c C-c toggle checkbox, one prefix create empty checkbox, twice to set intermediate state
X m Save all attachments of a particular type / a Display only mails with a matching email sender W v Enable / Disable display of mail headers G n Go to next unread article m Write an email S w Wide reply (Reply all) C-u number (on an imap dir) open Imap folder with that many old mails in it / w Restore previous limit (pop off the array)
Gnus NO LOGIN error:
Try removing newsrcdribble - file, .authconfig and logout from web - based outlook. Use an app - password. Then relaunch your emacs.