]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Remove excess tempos
[config.org.git] / config.org
index 9e96fc2ac0af7f6086927867c74c081c7c92f920..a6c0ce99e002fb3482726d91746b5397a134d76a 100644 (file)
@@ -150,8 +150,12 @@ Soft wrap words and do operations by visual lines in some modes.
 ** Display number of matches in search
 #+begin_src emacs-lisp
   (use-package anzu
+    :after (evil)
     :config (global-anzu-mode)
     :bind
+    ([remap isearch-forward] . isearch-forward-regexp)
+    ([remap isearch-backward] . isearch-backward-regexp)
+    ([remap query-replace] . anzu-query-replace)
     ([remap query-replace] . anzu-query-replace)
     ([remap query-replace-regexp] . anzu-query-replace-regexp))
 #+end_src
@@ -164,18 +168,30 @@ Invert modeline color instead of audible bell or the standard visual bell.
         (lambda () (invert-face 'mode-line)
           (run-with-timer 0.1 nil #'invert-face 'mode-line)))
 #+end_src
+** GUI
+#+begin_src emacs-lisp
+  (scroll-bar-mode -1)
+  (tool-bar-mode -1)
+  (menu-bar-mode -1)
+#+end_src
 * Evil mode
 ** General
 #+begin_src emacs-lisp
   (use-package evil
     :custom (select-enable-clipboard nil)
+    :init (setq evil-want-keybinding nil
+                evil-want-minibuffer t
+                evil-want-C-d-scroll t
+                evil-want-C-u-scroll t)
     :config
     (evil-mode)
     (fset 'evil-visual-update-x-selection 'ignore) ;; Keep clipboard and register seperate
     ;; Use visual line motions even outside of visual-line-mode buffers
     (evil-global-set-key 'motion "j" 'evil-next-visual-line)
     (evil-global-set-key 'motion "k" 'evil-previous-visual-line)
-    (global-set-key (kbd "<escape>") 'keyboard-escape-quit))
+    :bind
+    ("<escape>" . keyboard-escape-quit)
+    ("C-M-u" . universal-argument))
 #+end_src
 ** Evil collection
 Evil bindings for tons of packages.
@@ -260,17 +276,12 @@ Define templates for lots of common structure elements. Mostly just used within
     :straight (:type built-in)
     :config
     (dolist (addition '(
-                        ("ag" . "src conf :tangle ~/.gnupg/gpg-agent.conf")
                         ("ash" . "src shell :tangle ~/.config/ash/ashrc")
                         ("el" . "src emacs-lisp")
                         ("git" . "src conf :tangle ~/.gitconfig")
-                        ("gp" . "src conf :tangle ~/.gnupg/gpg.conf")
                         ("mb" . "src conf :tangle ~/.mbsyncrc")
-                        ("pi" . "src conf :tangle ~/.config/picom/picom.conf")
                         ("sp" . "src conf :tangle ~/.spectrwm.conf")
                         ("tm" . "src conf :tangle ~/.tmux.conf")
-                        ("xm" . "src conf :tangle ~/.config/xmodmap")
-                        ("xr" . "src conf :tangle ~/.Xresources")
                         ("za" . "src conf :tangle ~/.config/zathura/zathurarc")
                         ))
       (add-to-list 'org-structure-template-alist addition)))