From 1cd3b893d2690d796f249c34e622a1965962999d Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 11 Apr 2021 12:26:04 -0400 Subject: [PATCH] Remove evil goggles --- config.org | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index 5060668..13bafc5 100644 --- a/config.org +++ b/config.org @@ -150,13 +150,6 @@ Whenever starting a key chord, show possible future steps. :config (which-key-mode) :custom (which-key-idle-delay 0.3)) #+end_src -** Visual highlights of changes -Highlight when changes are made. -#+begin_src emacs-lisp - (use-package evil-goggles - :config (evil-goggles-mode) - (evil-goggles-use-diff-faces)) -#+end_src ** Highlight TODOs in comments #+begin_src emacs-lisp (use-package hl-todo @@ -981,8 +974,22 @@ I manage plugins using my own plugin manager, ZPE. https://git.sr.ht/~armaan/zpe #+begin_src shell :tangle ~/.config/zsh/zshrc chpwd() { emulate -L zsh - exa -lh --icons --git --group-directories-first + exa -h --icons --git --group-directories-first + } +#+end_src +**** Change default enter behavior +If no command given, =ls=, if in a Git repo, =git status= as well. +#+begin_src shell :tangle ~/.config/zsh/zshrc + acheam-accept-line () { + if [ ${#${(z)BUFFER}} -eq 0 ]; then + echo + [ git rev-parse --git-dir > /dev/null 2>&1 ] && git status + exa -h --icons --git --group-directories-first + fi + zle accept-line } + zle -N acheam-accept-line + bindkey '^M' acheam-accept-line #+end_src **** Setup anaconda #+begin_src shell :tangle ~/.config/zsh/zshrc -- 2.39.2