Files
dotfiles/thoom-emacs/TODO.org
2024-04-10 13:45:00 -07:00

4.8 KiB

Emacs TODOs

Cheatsheet

Zoom in/out

C-x C-[0/-/=] has repeat map

use-package key bindings

Can remap functions as well as keys

(use-package unfill
  :bind ([remap fill-paragraph] . unfill-toggle))

use-package supports repeat-map

(use-package git-gutter+
  :bind
  (:repeat-map git-gutter+-repeat-map
   ("n" . git-gutter+-next-hunk)
   ("p" . git-gutter+-previous-hunk)
   ("s" . git-gutter+-stage-hunks)
   ("r" . git-gutter+-revert-hunk)))

shortdoc-display-group

shows useful documentation summary on various categories of things

Act on other window with C-x 4 […]

Tab commands on C-x t

  (global-set-key (kbd "M-[") 'tab-bar-history-back)
  (global-set-key (kbd "M-]") 'tab-bar-history-forward)

High Priority

persist scratch buffer

scratch keybind

free keys

C-z

C-t

C-o

C-j

C-'

C-,

M-r

keybindings

emacs

better bindings for page up / page down / home / end

previous/next buffer

dired

eshell toggle

call e-shell globally previous buffer in eshell-mode

read docs/configure

when opening help buffer, focus it so I can q out

xref

dumb-jump

yasnippet

org src blocks

undo-tree

vertico

mwim

marginalia

orderless

consult

corfu

org

TAB should cycle when at end of folded header line

keybind C-c C-c for committing code block changes

keybind C-c n for narrow

switch to use-package repeat-map for C-c C-n/p

better binds for moving subtrees

roam

magit

Fix magit invisible changes in terminal

code folding

outli

combobulate

port doom config.el

reveal in finder

(defun first-executable (candidates)
  (seq-find #'executable-find candidates))

;; Reveal in finder/nautilus/whatever
(defun reveal-in-file-browser ()
  (interactive)
  (call-process
   (first-executable '("xdg-open" "open"))
   nil nil nil "."))

if nix in path, prefer nix versions of emacs packages

don't use :straight t in use-package declarations instead, have section that conditionally runs straight-use-package directives if necessary

languages

Notes from Mastering Emacs

C-x # in emacsclient says "done with current buffer"

C-x 8 RET (insert-char) for to insert weird characters

C-h m (describe-mode)

I in embark goes to manual

(global-set-key [remap <A>] '<B>)

remaps all keybindings that refer to <A> to <B>

repeat-mode

describe-repeat-maps to see which keys repeat

tab-bar-mode

replacement for perspective.el offers window configurations as tabs, similar to iTerm/Kitty also look into tab history mode

bookmarks

C-x r (m)ark, (l)ist, jump to (b)ookmark

registers

C-x r (s)tore region, (i)nsert contents C-x r (SPC) store point, (j)ump to register

highlighters

M-s h keymap also H in embark

auto-revert-tail-mode

M-| pipes region to shell command

replaces region if invoked with C-u