about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-ui.el11
-rw-r--r--.emacs.d/lisp/init-windows.el7
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