 ; Vue mode
 (add-to-list 'auto-mode-alist '("\\.vue\\'" . javascript-mode)) ; Enable JS mode for vue files
 (add-hook 'vue-mode-hook #'lsp!)
+
+
+; Functions for customizations
+(defun magit-log-head-maximized ()
+  ""
+  (interactive)
+  (magit-log-head)
+  (doom/window-maximize-buffer))
+
+(defun magit-log-buffer-file-maximized ()
+  ""
+  (interactive)
+  (magit-log-buffer-file)
+  (doom/window-maximize-buffer))
+
+(defun magit-kill-this-buffer-and-window ()
+  ""
+  (interactive)
+  (magit-kill-this-buffer)
+  (delete-window))

; Windows
(map! :leader "w m" #'doom/window-maximize-buffer)
; Magit
(map! :leader "g l" #'magit-log-head)
(map! :leader "g L" #'magit-log-buffer-file)
; Jest
(map! :leader "m t" #'jest-function)


    '((:source "~/.credentials/github.token")))

; Key bindings (faster to type)
(map! "C-k" #'switch-to-next-buffer)
(map! "C-j" #'switch-to-prev-buffer)
(map! :map magit-mode-map :n "C-k" #'switch-to-next-buffer)
(map! :map magit-mode-map :n "C-j" #'switch-to-prev-buffer)


; Key bindings (slower to type)
; Config
