From 39d1bd88e7521e3e5dc51205161187cb4ffe6439 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 5 Mar 2023 16:15:58 +0100 Subject: Commit a bunch of .emacs stuff * ponder magical "kill context so I can paste it into another app" commands, * remove obsolete Magit variables, * make org-goto use the "path completion" UI, * ponder better buffer names for some buffers. --- .emacs | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.emacs b/.emacs index 9cb1fde..d2e522c 100644 --- a/.emacs +++ b/.emacs @@ -171,6 +171,21 @@ (kill-new stuff) (message stuff)) +;; TODO: my/kill-where +;; * filename +;; * absolute, project-relative (w/o project), namespace-relative, base +;; * function +;; * line number +;; * public URL + +;; TODO: my/kill-cite +;; * prefix: nil, >, | +;; * indent +;; * attribution: see my/kill-where +;; * concise: "(manual) Node", "manual(7)" +;; * executable: (info "(manual) Node"), "man 7 manual" +;; * + (defun my/kill-filename () (interactive) (my/kill (or (buffer-file-name) default-directory))) @@ -710,9 +725,7 @@ :custom (magit-define-global-key-bindings nil) (magit-diff-refine-hunk t) - (magit-ediff-dwim-show-on-hunks t) - (magit-log-arguments '("--graph" "--color" "--decorate" "-n256")) - (magit-log-section-arguments '("--graph" "--color" "--decorate" "-n256"))) + (magit-ediff-dwim-show-on-hunks t)) (use-package magit-blame :delight "👉") @@ -744,6 +757,7 @@ (org-ellipsis "…") (org-fontify-done-headline nil) (org-fontify-quote-and-verse-blocks t) + (org-goto-interface 'outline-path-completion) (org-startup-indented t) ;; Make org-refile a bit more eager. (org-outline-path-complete-in-steps nil) @@ -780,4 +794,7 @@ ;; buffer first causes diff-mode's settings to be applied globally. :demand t) -;;; TODO: decruftify mode-line (e.g. remove superflous parens). +;;; TODO: +;; * decruftify mode-line (e.g. remove superflous parens). +;; * teach some modes to give better names to their buffers to reduce +;; clobbering: info, occur -- cgit v1.2.3