(闲聊)Google DeepMind 的首席科学家 Jeff Dean

不能认同更多, avy 用过几次真的很累

我现在就是consult-line和

(defun consult-line-current-screen ()
  "As name."
  (interactive)
  (let ((start (window-start))
        (end (window-end (selected-window) t)))
    (save-restriction
      (narrow-to-region start end)
      (consult-line))))

混合着用

2 个赞

链接疑似死了

貌似是打漏了个 s:

我选择 M-o 绑定到 windmov,以前用过 vim,M-o + h / j / k / l 移动符合直觉一点。

你这用法和我说的正相反

@chunhui_true @devpvgrs 这样呢?写了个hydra,绑定到C-c w。平时用C-x o

我是绑定到M-o 就够了,没有其他的。反正顺手就行。

我只设置了上下左右移动

(use-package windmove
  :config
  (setopt hydra-hint-display-type 'message)
  :after hydra
  :bind ("M-o" . hydra-windmove/body)
  :hydra (hydra-windmove
          (:hint nil :exit t)
          "
_h_: left _j_: down _k_: up _l_: right "
          ("h"  windmove-left)
          ("j"  windmove-down)
          ("k"  windmove-up)
          ("l"  windmove-right)
          ("q"  nil "quit" :color blue)))
1 个赞