Hi,

A while back I asked about enabling --gpg-sign / --sign on commit/tag by 
default in key-mode popups. My understanding is that key-mode was going to be 
majorly reworked and defaults may be part of that.

It seems that key-mode has been reworked, but I don't see defaults.

I used to hack magit-key-mode.el like this:

(defun magit-key-mode-generate (group)
  "Generate the key-group menu for GROUP."
  (let ((opts (magit-key-mode-options-for-group group)))
    (eval
     `(defun ,(intern (concat "magit-key-mode-popup-" (symbol-name group))) nil
        ,(concat "Key menu for " (symbol-name group))
        (interactive)
        (magit-key-mode
         (quote ,group)
         ;; As a tempory kludge it is okay to do this here.
         ,(cl-case group
            (logging
             '(list "--graph"))

            ;; kludge for commiting and tagging signing.
            (committing
             '(list "--gpg-sign"))
            (tagging
             '(list "--sign"))


            (diff-options
             '(when (local-variable-p 'magit-diff-options)
                magit-diff-options))))))))

This doesn't work anymore, because it looks like --gpg-sign needs a keysig now. 
My elisp is not powerful enough to understand how to add a similar kludge in 
the new code.

Can anyone suggest a similar kludge?

-- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to