]> git.armaanb.net Git - config.org.git/commitdiff
Remove evil goggles
authorArmaan Bhojwani <me@armaanb.net>
Sun, 11 Apr 2021 16:26:04 +0000 (12:26 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 11 Apr 2021 16:26:04 +0000 (12:26 -0400)
config.org

index 50606688394bbac0fe17b507ff15eb508e3cd3da..13bafc5cee5a034e4e0bbdbab4982838300354ce 100644 (file)
@@ -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