about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-11-27 12:18:04 -0600
committerCase Duckworth2020-11-27 12:18:04 -0600
commit060959b73ee3d621f00cca736da7010b4bcb094b (patch)
tree897179ce8ad17260754c8b0f432ae599d4f11b40
parentKeep cursor from going into the prompt (diff)
downloademacs-060959b73ee3d621f00cca736da7010b4bcb094b.tar.gz
emacs-060959b73ee3d621f00cca736da7010b4bcb094b.zip
Move Git section to Applications
-rw-r--r--config.org87
1 files changed, 43 insertions, 44 deletions
diff --git a/config.org b/config.org index 0c82726..03ffc19 100644 --- a/config.org +++ b/config.org
@@ -990,50 +990,6 @@ from [[https://github.com/alphapapa/unpackaged.el#org-return-dwim][unpackaged.el
990 (add-hook 'prog-mode-hook #'acdw/enable-line-numbers) 990 (add-hook 'prog-mode-hook #'acdw/enable-line-numbers)
991#+end_src 991#+end_src
992 992
993** Git
994
995#+begin_src emacs-lisp
996 (use-package magit
997 :bind
998 ("C-x g" . magit-status)
999 :custom-update
1000 (magit-no-confirm '(stage-all-changes)))
1001#+end_src
1002
1003*** Hook into =prescient=
1004
1005#+begin_src emacs-lisp
1006 (define-advice magit-list-refs
1007 (:around (orig &optional namespaces format sortby)
1008 prescient-sort)
1009 "Apply prescient sorting when listing refs."
1010 (let ((res (funcall orig namespaces format sortby)))
1011 (if (or sortby
1012 magit-list-refs-sortby
1013 (not selectrum-should-sort-p))
1014 res
1015 (prescient-sort res))))
1016#+end_src
1017
1018*** Use =libgit= when I can build it (requires =cmake=)
1019
1020#+begin_src emacs-lisp
1021 (when (executable-find "cmake")
1022 (use-package libgit)
1023 (use-package magit-libgit))
1024#+end_src
1025
1026*** Git "forge" capabilities
1027
1028#+begin_src emacs-lisp
1029 (use-package forge
1030 :after magit
1031 :unless (eq system-type 'windows-nt)
1032 :custom
1033 (forge-owned-accounts
1034 '(("duckwork"))))
1035#+end_src
1036
1037** Programming languages 993** Programming languages
1038 994
1039*** Fish shell 995*** Fish shell
@@ -1094,6 +1050,49 @@ from [[https://github.com/alphapapa/unpackaged.el#org-return-dwim][unpackaged.el
1094 1050
1095* Applications 1051* Applications
1096 1052
1053** Git
1054
1055#+begin_src emacs-lisp
1056 (use-package magit
1057 :bind
1058 ("C-x g" . magit-status)
1059 :custom-update
1060 (magit-no-confirm '(stage-all-changes)))
1061#+end_src
1062
1063*** Hook into =prescient=
1064
1065#+begin_src emacs-lisp
1066 (define-advice magit-list-refs
1067 (:around (orig &optional namespaces format sortby)
1068 prescient-sort)
1069 "Apply prescient sorting when listing refs."
1070 (let ((res (funcall orig namespaces format sortby)))
1071 (if (or sortby
1072 magit-list-refs-sortby
1073 (not selectrum-should-sort-p))
1074 res
1075 (prescient-sort res))))
1076#+end_src
1077
1078*** Use =libgit= when I can build it (requires =cmake=)
1079
1080#+begin_src emacs-lisp
1081 (when (executable-find "cmake")
1082 (use-package libgit)
1083 (use-package magit-libgit))
1084#+end_src
1085
1086*** Git "forge" capabilities
1087
1088#+begin_src emacs-lisp
1089 (use-package forge
1090 :after magit
1091 :unless (eq system-type 'windows-nt)
1092 :custom
1093 (forge-owned-accounts
1094 '(("duckwork"))))
1095#+end_src
1097** Elpher 1096** Elpher
1098 1097
1099#+BEGIN_SRC emacs-lisp 1098#+BEGIN_SRC emacs-lisp