[emacs/magit] auto-expand unpulled and unpushed sections
authorAmin Bandali <bandali@gnu.org>
Thu, 22 Nov 2018 15:40:22 +0000 (10:40 -0500)
committerAmin Bandali <bandali@gnu.org>
Thu, 22 Nov 2018 15:40:22 +0000 (10:40 -0500)
init.org

index f8c87b5..1c847ff 100644 (file)
--- a/init.org
+++ b/init.org
@@ -993,7 +993,9 @@ Not just how I do git, but /the/ way to do git.
   (setq
    magit-repository-directories '(("~/.emacs.d/" . 0)
                                   ("~/src/git/" . 1)))
   (setq
    magit-repository-directories '(("~/.emacs.d/" . 0)
                                   ("~/src/git/" . 1)))
-  (push (cons [unpushed status] 'show) magit-section-initial-visibility-alist)
+  (nconc magit-section-initial-visibility-alist
+         '(([unpulled status] . show)
+           ([unpushed status] . show)))
   :custom-face (magit-diff-file-heading ((t (:weight normal)))))
 #+end_src
 
   :custom-face (magit-diff-file-heading ((t (:weight normal)))))
 #+end_src