summaryrefslogtreecommitdiff
path: root/config/magit.el
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2025-12-14 00:06:11 +0800
committerbh <qn+git@excalibur.computer>2025-12-14 00:06:11 +0800
commit096790cd907f4874e0e121c42b6b33a50e5105d2 (patch)
tree622321021031f5b59084ab25fbe82da129c78a9e /config/magit.el
parent490e3970b6df1ce400cb21b521da9a861b739023 (diff)
Cleaned the indentation up
Diffstat (limited to 'config/magit.el')
-rw-r--r--config/magit.el44
1 files changed, 22 insertions, 22 deletions
diff --git a/config/magit.el b/config/magit.el
index 29d7b64..85f2de0 100644
--- a/config/magit.el
+++ b/config/magit.el
@@ -1,41 +1,41 @@
;; Magit - Simple Git interface for Emacs
(use-package magit
- :bind
- (("C-x g" . magit-status) ;; Open Magit status
- ("C-x M-g" . magit-dispatch) ;; Magit command menu
- ("C-c M-g" . magit-file-dispatch) ;; File-specific commands
- ("C-c g b" . magit-blame) ;; Git blame for current file
- ("C-c g l" . magit-log-buffer-file) ;; Log for current file
- ("C-c g d" . magit-diff-buffer-file));; Diff for current file
- :config
- ;; Section highlight (when cursor is on a section)
- (set-face-attribute 'magit-section-highlight nil
+ :bind
+ (("C-x g" . magit-status) ;; Open Magit status
+ ("C-x M-g" . magit-dispatch) ;; Magit command menu
+ ("C-c M-g" . magit-file-dispatch) ;; File-specific commands
+ ("C-c g b" . magit-blame) ;; Git blame for current file
+ ("C-c g l" . magit-log-buffer-file) ;; Log for current file
+ ("C-c g d" . magit-diff-buffer-file));; Diff for current file
+ :config
+ ;; Section highlight (when cursor is on a section)
+ (set-face-attribute 'magit-section-highlight nil
:background "#004344")
- ;; Section heading text color (like "Unstaged changes", "Staged changes", etc.)
- (set-face-attribute 'magit-section-heading nil
+ ;; Section heading text color (like "Unstaged changes", "Staged changes", etc.)
+ (set-face-attribute 'magit-section-heading nil
:foreground "#ffc600")
- ;; Diff hunk headers (the @@ lines)
- (set-face-attribute 'magit-diff-hunk-heading nil
+ ;; Diff hunk headers (the @@ lines)
+ (set-face-attribute 'magit-diff-hunk-heading nil
:background "#002323"
:foreground "#8affff")
- (set-face-attribute 'magit-diff-hunk-heading-highlight nil
+ (set-face-attribute 'magit-diff-hunk-heading-highlight nil
:background "#112b2b"
:foreground "#8affff")
- ;; Diff context lines (unchanged lines in diffs)
- (set-face-attribute 'magit-diff-context nil
+;; Diff context lines (unchanged lines in diffs)
+(set-face-attribute 'magit-diff-context nil
:background "#003636")
- (set-face-attribute 'magit-diff-context-highlight nil
+(set-face-attribute 'magit-diff-context-highlight nil
:background "#004344")
- ;; Show recent commits
- (setq magit-log-section-commit-count 10)
+;; Show recent commits
+(setq magit-log-section-commit-count 10)
- ;; Customize section order - keep unstaged, staged, and recent commits at top
- (setq magit-status-sections-hook
+;; Customize section order - keep unstaged, staged, and recent commits at top
+(setq magit-status-sections-hook
'(magit-insert-status-headers
magit-insert-staged-changes
magit-insert-unstaged-changes