[git] Restore magit transient args between sessions
problem: The Magit w (apply patches) arguments are not remembered between sessions. cause: Magit reads the transient files: history.el, levels.el, and values.el before Spacemacs has redirected them to the .cache directory. solution: Redirect the files before magit reads them.
This commit is contained in:
parent
f62934620d
commit
8839858d54
2 changed files with 10 additions and 9 deletions
|
@ -2062,6 +2062,7 @@ Other:
|
|||
Magit diff or blame buffer (thanks to duianto and Miciah Masters)
|
||||
- Allowed multichar major mode leader key for exiting magit commit edits
|
||||
(thanks to tuh8888)
|
||||
- Restore magit transient args between sessions (thanks to duianto)
|
||||
**** Gnus
|
||||
- Key bindings:
|
||||
- Added ~g r~ for =gnus-group-get-new-news= (thanks to Matthew Leach)
|
||||
|
|
|
@ -335,17 +335,17 @@
|
|||
"gHh" 'smeargle-commits
|
||||
"gHt" 'smeargle))))
|
||||
|
||||
(defun git/pre-init-transient ()
|
||||
(setq transient-history-file (expand-file-name "transient/history.el"
|
||||
spacemacs-cache-directory))
|
||||
(setq transient-levels-file (expand-file-name "transient/levels.el"
|
||||
spacemacs-cache-directory))
|
||||
(setq transient-values-file (expand-file-name "transient/values.el"
|
||||
spacemacs-cache-directory)))
|
||||
|
||||
(defun git/init-transient ()
|
||||
(use-package transient
|
||||
:defer t
|
||||
:init
|
||||
(setq
|
||||
transient-levels-file
|
||||
(expand-file-name "transient/levels.el" spacemacs-cache-directory)
|
||||
transient-values-file
|
||||
(expand-file-name "transient/values.el" spacemacs-cache-directory)
|
||||
transient-history-file
|
||||
(expand-file-name "transient/history.el" spacemacs-cache-directory))))
|
||||
:defer t))
|
||||
|
||||
(defun git/init-forge ()
|
||||
(use-package forge
|
||||
|
|
Reference in a new issue