diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-08-13 11:37:58 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-08-13 11:37:58 +0100 |
commit | 65ad19d6e071f74650a74f302c3a390bf34f54cf (patch) | |
tree | e66fbda70900d3f670ef88ed9f5198c17d0c1d80 | |
parent | 9961cd83336485dbed48e8dedf6e389af12e1f53 (diff) | |
download | dotfiles-65ad19d6e071f74650a74f302c3a390bf34f54cf.tar.gz |
Use repeat instead of smartrep
-rw-r--r-- | .emacs.d/lisp/init-ui.el | 11 | ||||
-rw-r--r-- | .emacs.d/lisp/init-windows.el | 7 |
2 files changed, 10 insertions, 8 deletions
diff --git a/.emacs.d/lisp/init-ui.el b/.emacs.d/lisp/init-ui.el index 90352be..c572b2e 100644 --- a/.emacs.d/lisp/init-ui.el +++ b/.emacs.d/lisp/init-ui.el @@ -133,7 +133,16 @@ (use-package rainbow-mode :diminish) -(use-package smartrep) +(use-package repeat + :config + (repeat-mode +1) + (defvar buffer-repeat-map + (let ((map (make-sparse-keymap))) + (define-key map (kbd "<left>") #'previous-buffer) + (define-key map (kbd "<right>") #'next-buffer) + map)) + (dolist (cmd '(previous-buffer next-buffer)) + (put cmd 'repeat-map 'buffer-repeat-map))) (use-package pulsar :custom diff --git a/.emacs.d/lisp/init-windows.el b/.emacs.d/lisp/init-windows.el index 6fc94e1..8c86a54 100644 --- a/.emacs.d/lisp/init-windows.el +++ b/.emacs.d/lisp/init-windows.el @@ -70,13 +70,6 @@ ((t (:foreground "white" :background "red" :weight bold :height 2.5 :box (:line-width 10 :color "red")))))) -(smartrep-define-key global-map - "C-x" '(("}" . enlarge-window-horizontally) - ("{" . shrink-window-horizontally) - ("^" . enlarge-window) - ("-" . shrink-window) - ("<left>". previous-buffer) - ("<right>" . next-buffer))) (provide 'init-windows) ;;; init-windows.el ends here |