adding magit

This commit is contained in:
Chris Cochrun 2021-02-16 11:01:04 -06:00
parent 17176c4183
commit da3ba1a3db

View file

@ -3,6 +3,7 @@
* Early Init
#+PROPERTY: header-args:emacs-lisp :tangle early-init.el
As of right now I haven't fully setup my early-init file, this does not export into the early-init.el file currently as it's just a copy from Doom's early-init.
#+begin_src emacs-lisp :tangle no
;;; early-init.el -*- lexical-binding: t; -*-
@ -161,12 +162,18 @@ This evil-collection package includes a lot of other evil based things.
:keymaps '(normal visual emacs)
:prefix "SPC")
(chris/leader-keys
"b" '(:ignore t :which-key "buffer")
"t" '(:ignore t :which-key "toggle")
"f" '(:ignore t :which-key "file")
"w" '(:ignore t :which-key "window")
"s" '(:ignore t :which-key "search")
"o" '(:ignore t :which-key "open")
"bs" '(consult-buffer :which-key "buffer search")
"tt" '(consult-theme :which-key "choose theme")
"ff" '(find-file :which-key "find file")
"fs" '(save-buffer :which-key "save")
"od" '(dired-jump :which-key "dired jump")
"ss" '(consult-line :which-key "consult search")
"ww" '(other-window :which-key "other window")
))
#+end_src
@ -330,3 +337,10 @@ Need to setup auto tangle yes
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'chris/org-babel-tangle-config))))
#+end_src
** Magit
#+begin_src emacs-lisp
(use-package magit
:commands (magit-status magit-get-current-branch)
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))
#+end_src