From 394716cfc096696dc61cc7e9c54bfb32a48083c7 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 15 Dec 2022 08:42:02 +0200 Subject: general:Change prefix key, add apollo/center-buffer --- .emacs.d/lisp/keys.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.emacs.d/lisp/keys.el') diff --git a/.emacs.d/lisp/keys.el b/.emacs.d/lisp/keys.el index 83ba948..c3ab4d4 100644 --- a/.emacs.d/lisp/keys.el +++ b/.emacs.d/lisp/keys.el @@ -6,24 +6,28 @@ (require 'pdf-tools) ;; my general's leader key! -(defconst general-key "C-;") +(defconst general-key "C-c g") + (define-prefix-command 'window-control-map) (global-set-key (kbd "C-w") 'window-control-map) + (general-create-definer general-does - :prefix general-key) + :prefix general-key) ;; Basic functions (general-define-key "C-d" 'kill-region "C-k" 'copy-region-as-kill) - +;; ; My general does the following: (general-does "t" 'counsel-load-theme "l" 'display-line-numbers-mode "v" 'multi-vterm-next - "e" 'eshell) + "e" 'eshell + "i" 'circe + "c" 'apollo/center-buffer) ;;pdf-tools (general-define-key -- cgit v1.2.3