From ce33723c2048f515f3a49e9aae0c75445f8fe399 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 25 Mar 2021 10:19:35 +0000 Subject: (Emacs)~cleaned up loads of bindings into one use-package decl --- Emacs/.config/emacs/config.org | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 180ce36..bb6f708 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -233,33 +233,20 @@ instead just picking stuff I think is useful. With a ton of use-package declarations (to defer until the last moment), bind to general some basic binds. #+begin_src emacs-lisp -(use-package face-remap +(use-package emacs :straight nil :general + (general-def + "C-x d" #'delete-frame) (general-def :states '(normal motion) "C--" #'text-scale-decrease - "C-=" #'text-scale-increase)) - -(use-package frame - :straight nil - :general - (general-def - "C-x d" #'delete-frame)) - -(use-package simple - :straight nil - :general + "C-=" #'text-scale-increase) (leader "SPC" #'execute-extended-command "u" #'universal-argument ";" #'eval-expression - "!" #'async-shell-command)) - -(use-package files - :straight nil - :general - (leader + "!" #'async-shell-command "q" #'save-buffers-kill-terminal "cF" (proc (interactive) (find-file "~/Code/"))) (leader @@ -272,10 +259,7 @@ moment), bind to general some basic binds. :straight nil :general (leader - "cc" #'compile - "cC" (proc (interactive) - (let ((current-prefix-arg '(1))) - (call-interactively #'compile))))) + "cc" #'compile)) (use-package imenu :straight nil -- cgit v1.2.3-13-gbd6f