summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2022-02-20 17:52:14 +0100
committerfpi2022-03-17 14:39:47 +0100
commit4ea4a0dca52927810b2f1f9e5c06d80cfc0728cd (patch)
tree4007423f7640e6d303173e6dedb74b16fee25a21
parentFix misplaced parentheses in device definition (diff)
git-annex: Override recipe and fix package loading
Diffstat (limited to '')
-rw-r--r--emacs-init.org17
1 files changed, 13 insertions, 4 deletions
diff --git a/emacs-init.org b/emacs-init.org
index a5a265a..5f26a68 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -240,6 +240,10 @@ with other package definition and customization.
#+BEGIN_SRC emacs-lisp
(setq straight-profiles `((nil . ,(expand-file-name "package-versions.el" "~/git/projects/dotfiles"))))
+(setq straight-recipe-overrides
+ '(nil . (
+ <<straight-recipe-overrides>>
+ )))
#+END_SRC
**** straight.el documentation excerpts
:PROPERTIES:
@@ -2441,16 +2445,21 @@ of src_shell{getconf "PATH"}. See [[elisp:(describe-variable
** Git
*** Git annex
There are some great ressources on [[https://git-annex.branchable.com/][git-annex]] integration in emacs in [[https://github.com/mm--/dot-emacs/blob/master/jmm-emacs.org][Josh's config]]. Most of my configuration is copied from there.
+#+begin_src emacs-lisp :noweb-ref straight-recipe-overrides :tangle no :eval never
+(git-annex :type git :flavor melpa :host github :repo "jwiegley/git-annex-el")
+#+end_src
#+begin_src emacs-lisp
(use-package git-annex
- :straight t
+ :straight (:host github :repo "fpiper/git-annex-el" :branch "master")
:config
<<git-annex-config>>
- :after (dired))
-(use-package git-annex
+ :after (dired)
:bind
(:map git-annex-dired-map
<<git-annex-dired-bindings>>)
+ (:map dired-mode-map
+ <<git-annex-dired-map-bindings>>
+ )
)
#+end_src
**** Actions to lock/unlock files
@@ -2554,7 +2563,7 @@ When you use this in combination with ~dired-do-kill-lines~ (by default bound to
"available file"))
#+END_SRC
**** Mark git-annex files with git-annex-matching-options
-#+BEGIN_SRC emacs-lisp :tangle no :noweb-ref dired-bindings
+#+BEGIN_SRC emacs-lisp :tangle no :noweb-ref git-annex-dired-map-bindings
("% a" . jmm/dired-mark-files-git-annex-matching)
#+END_SRC