diff options
| author | cashmere <cashmere@autistici.org> | 2025-10-31 11:26:49 +0100 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2025-10-31 11:26:49 +0100 |
| commit | 8081424a66aed629ee3f9873b3d45a85aa863bb6 (patch) | |
| tree | 9b56766c61ecb0cb503f7ad15267a8091d2e2d84 /config.el | |
| parent | c3f6f24ae8c696a7c80ceee5f237aa26e594de9c (diff) | |
| download | emacs-8081424a66aed629ee3f9873b3d45a85aa863bb6.tar.gz | |
fix all annoying magit behaviour
Diffstat (limited to 'config.el')
| -rw-r--r-- | config.el | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -70,6 +70,8 @@ (string-match "\\*[^*]+\\*" (buffer-name buffer))) (setq switch-to-prev-buffer-skip 'skip-these-buffers) +(setq switch-to-prev-buffer-skip-regexp + '("\\*[^*]+\\*" "^magit" "^\\*magit")) ;; Configure font settings based on the operating system. ;; Ok, this kickstart is meant to be used on the terminal, not on GUI. @@ -1081,7 +1083,8 @@ completion-category-overrides '((file (styles partial-completion))))) ;; Customi :config (if ek-use-nerd-fonts ;; Check if nerd fonts are being used (setopt magit-format-file-function #'magit-format-file-nerd-icons)) ;; Turns on magit nerd-icons - ) + :custom + (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) (defun my/magit-kill-buffers () "kills all magit buffers" (interactive) @@ -1089,6 +1092,10 @@ completion-category-overrides '((file (styles partial-completion))))) ;; Customi (magit-restore-window-configuration) (mapc #'kill-buffer buffers))) +(setq switch-to-prev-buffer-skip + (lambda (window buffer bury-or-kill) + (string-match-p "\\*magit" (buffer-name buffer)))) + (use-package indent-guide :defer t :straight t |
