diff --git a/thoom-emacs/TODO.org b/thoom-emacs/TODO.org index 9e8bc44..0730e03 100644 --- a/thoom-emacs/TODO.org +++ b/thoom-emacs/TODO.org @@ -1,5 +1,25 @@ #+title: Emacs TODOs #+STARTUP: content +* Cheatsheet +** Zoom in/out +C-x C-[0/-/=] +has repeat map +** use-package key bindings +Can remap functions as well as keys +#+begin_src emacs-lisp +(use-package unfill + :bind ([remap fill-paragraph] . unfill-toggle)) +#+end_src +** Supports repeat-map +#+begin_src emacs-lisp +(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))) +#+end_src * mine for ideas https://github.com/daviwil/emacs-from-scratch/blob/9388cf6ecd9b44c430867a5c3dad5f050fdc0ee1/Emacs.org @@ -7,10 +27,9 @@ https://github.com/daviwil/emacs-from-scratch/blob/9388cf6ecd9b44c430867a5c3dad5 ** emacs better bindings for page up / page down / home / end center cursor after page up / page down +https://karthinks.com/software/more-less-emacs/#bonus-half-screen-scrolling ** org-evil bindings M-hjlk for moving headings -** vertico -C-hjkl for navigating files ** meow *** equivalents of evil <, > for indentation *** equivalent of gd/gu (use embark?) @@ -19,31 +38,67 @@ C-hjkl for navigating files *** equivalent of r (replace character under point, don't enter insert mode) *** equivalent of . for repeating edits learn kmacros -* magit -* undo-tree -* parinfer +** dired +*** hjkl navigation +*** : for M-x +* read docs/configure +** magit +*** start in insert state in commit message +** straight +*** lockfile +** corfu +https://takeonrules.com/2022/01/17/switching-from-company-to-corfu-for-emacs-completion/ +** embark +https://karthinks.com/software/fifteen-ways-to-use-embark/ +** vertico +** marginalia +** orderless +** consult +** org +*** C-RET should enter meow insert state +*** better embark bindings for moving subtrees +*** embark binding for tagging header +*** keybind for narrow +*** switch to use-package repeat-map for C-c C-n/p + +*** transclude +https://github.com/nobiot/org-transclusion +*** beautify +https://mstempl.netlify.app/post/beautify-org-mode/ +https://github.com/Gavinok/emacs.d/blob/main/lisp/org-config.el +**** hide markup characters +* modeline +** diminish/delight +* port doom config.el +** set font to Fira Code +** reveal in finder +#+begin_src emacs-lisp +(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 ".")) + +(map! :leader + :desc "Reveal" + "o o" #'reveal-in-file-browser) +#+end_src + +* make emacsclient -nw work on Mac * line wrapping https://elpa.gnu.org/packages/adaptive-wrap.html * 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 -** Emacs packages installed via Nix don't work in Mac app - -* Load terminfo on MacOS from nix profile -source nix env vars from somewhere? -* direnv -* eglot / lsp-mode -* corfu -https://takeonrules.com/2022/01/17/switching-from-company-to-corfu-for-emacs-completion/ -* embark -** function for org tagging -* org -** C-RET should enter meow insert state -** better embark bindings for moving subtrees -** embark binding for tagging header -** keybind for narrow -** beautify -https://mstempl.netlify.app/post/beautify-org-mode/ +* install +** yasnippet +** undo-tree +** parinfer +** eglot / lsp-mode * languages ** python ** nix @@ -57,6 +112,7 @@ How does beacon mode decide whether a movement creates all possible cursors or j How to express "insert before the second word of the line"? Why doesn't visit work consistently in beacon mode? *** defining C- keys in normal mode seems to fuck everything up for some reason +** sexp state ** notes *** r replaces selection with yank buffer * Notes from Mastering Emacs