 (use-package magit
   :ensure t
   :bind ("C-x g" . magit-status)
-  :init
+  :config
   (setq magit-process-popup-time -1
         magit-auto-revert-mode-lighter nil
         magit-push-always-verify·nil)
-  :config
   (setq magit-display-buffer-function
         (lambda (buffer)
           (if (or

               '("b"
                 "#+BEGIN_SRC bib\n?\n#+END_SRC"
                 "<src lang=\"bib\">\n\n</src>"))
  
  ;; (use-package org-journal)
  ;; (setq org-journal-dir "~/Documents/spoiler/logs/")
  ;; (setq org-journal-file-format "%Y-%m-%d.org")

  ;; shortcut for C-u C-c C-l
  (defun org-insert-file-link () (interactive) (org-insert-link '(4)))
  (org-defkey org-mode-map (kbd "C-c l") 'org-store-link)

  ;; some templates
  (setcdr (assoc "c" org-structure-template-alist)
          '("#+BEGIN_COMMENT\n?\n#+END_COMMENT"))
