From de652405d617c99a8982a8e143e8cc460077b726 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 3 Apr 2021 01:51:31 +0100 Subject: repeat mode --- init.org | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/init.org b/init.org index 6f2026e..99ed68b 100644 --- a/init.org +++ b/init.org @@ -233,6 +233,8 @@ #+end_src *** Keyboard and hydra #+begin_src emacs-lisp + (use-package repeat) + (repeat-mode) (use-package hydra :ensure t) (use-package major-mode-hydra @@ -1344,23 +1346,6 @@ (global-set-key (kbd "s-a") #'jao-first-window) (global-set-key (kbd "H-s-a") #'jao-first-window) - - (defun other-window-backward () - (interactive) - (other-window -1)) - - (defun transient-other-window () - (interactive) - (let ((echo-keystrokes nil)) - (other-window 1) - (set-transient-map - (let ((map (make-sparse-keymap))) - (define-key map "o" #'other-window) - (define-key map "p" #'other-window-backward) - map) - t))) - - (global-set-key (kbd "C-x o") #'transient-other-window) #+end_src *** winner mode #+begin_src emacs-lisp @@ -2965,10 +2950,6 @@ (setq next-error-find-buffer-function #'next-error-buffer-on-selected-frame next-error-verbose t) - - (defhydra jao-hydra-errors (global-map "M-g") - ("n" next-error "next error") - ("p" previous-error "previous error")) #+end_src *** Language servers #+begin_src emacs-lisp -- cgit v1.2.3