From 496b04742588ad5fc2ed0695cd1169fdc99c4a32 Mon Sep 17 00:00:00 2001 From: MysteryBirb Date: Fri, 2 Oct 2026 00:23:02 +0200 Subject: [PATCH] Slight emacs and zgit update --- emacs/.emacs.d/init.el | 11 ++++++----- zgit | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 925ebb4..fd82361 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -10,10 +10,13 @@ ;; C-x RIGHT | LEFT : switches between buffers left and right ;; C-x b : switch to buffer with its name ;; C-x 2 | 3 : split window horizontally or vertical -;; C-x 0 : kills one window +;; C-x 1 : Kill djacent window +;; C-x 0 : kills current active window ;; C-x C-q : toggle read-only mode +;; C-M-f : Goes to next closing bracket +;; C-M-b : Goes to next opening bracket ;; M-x cd : change dir duh -;; M-y : to paste into vterm or generally +;; M-y : to paste into vterm or generally(?) ;; M-x package-list-packages RET Ux : updates packages ;; M-x eglot-inlay-hints-mode : cool info for code ;; M-ESC : Escapes corfu prompt @@ -30,7 +33,7 @@ :ensure t :init (defvar evil-mode-buffers '()) - ;; Error in post-command-hook (evil-normal-post-command): (void-variable evil-mode-buffers) + ;; ^ Only fix for "Error in post-command-hook (evil-normal-post-command): (void-variable evil-mode-buffers)" i could find ;;(setq evil-want-keybinding nil) (evil-mode 1) :config @@ -146,8 +149,6 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(base16-theme-highlight-mode-line 'box) - '(eglot-ignored-server-capabilities - '(:documentFormattingProvider :documentRangeFormattingProvider)) '(package-selected-packages '(evil))) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/zgit b/zgit index 56262f4..6ac34e1 100755 --- a/zgit +++ b/zgit @@ -14,7 +14,7 @@ while getopts "a:s:" o; do ;; s) s=${OPTARG} - if [ -f $s ]; then + if [ -f $s ] || [ -d $s ]; then git add $s read -p "Commit message: " commitMsg tmp="${commitMsg%\"}"