Update Emacs TODOs

This commit is contained in:
2022-10-09 23:54:58 -07:00
parent 033a1a75ee
commit c4bc3979e3

View File

@@ -1,5 +1,25 @@
#+title: Emacs TODOs #+title: Emacs TODOs
#+STARTUP: content #+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 * mine for ideas
https://github.com/daviwil/emacs-from-scratch/blob/9388cf6ecd9b44c430867a5c3dad5f050fdc0ee1/Emacs.org 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 ** emacs
better bindings for page up / page down / home / end better bindings for page up / page down / home / end
center cursor after page up / page down center cursor after page up / page down
https://karthinks.com/software/more-less-emacs/#bonus-half-screen-scrolling
** org-evil bindings ** org-evil bindings
M-hjlk for moving headings M-hjlk for moving headings
** vertico
C-hjkl for navigating files
** meow ** meow
*** equivalents of evil <, > for indentation *** equivalents of evil <, > for indentation
*** equivalent of gd/gu (use embark?) *** 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 r (replace character under point, don't enter insert mode)
*** equivalent of . for repeating edits *** equivalent of . for repeating edits
learn kmacros learn kmacros
* magit ** dired
* undo-tree *** hjkl navigation
* parinfer *** : 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 * line wrapping
https://elpa.gnu.org/packages/adaptive-wrap.html https://elpa.gnu.org/packages/adaptive-wrap.html
* if nix in path, prefer nix versions of emacs packages * if nix in path, prefer nix versions of emacs packages
don't use :straight t in use-package declarations don't use :straight t in use-package declarations
instead, have section that conditionally runs straight-use-package directives if necessary instead, have section that conditionally runs straight-use-package directives if necessary
** Emacs packages installed via Nix don't work in Mac app * install
** yasnippet
* Load terminfo on MacOS from nix profile ** undo-tree
source nix env vars from somewhere? ** parinfer
* direnv ** eglot / lsp-mode
* 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/
* languages * languages
** python ** python
** nix ** 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"? How to express "insert before the second word of the line"?
Why doesn't visit work consistently in beacon mode? Why doesn't visit work consistently in beacon mode?
*** defining C-<something> keys in normal mode seems to fuck everything up for some reason *** defining C-<something> keys in normal mode seems to fuck everything up for some reason
** sexp state
** notes ** notes
*** r replaces selection with yank buffer *** r replaces selection with yank buffer
* Notes from Mastering Emacs * Notes from Mastering Emacs