一个字一个字敲
好吧……
同感。。。。。。
逗你玩的
M-x artist-mode
(require 'hydra)
(require 'artist)
(defhydra hydra-draw (artist-mode-map "\M-d")
"artist draw"
("l" artist-select-op-line "lines")
("L" artist-select-op-straight-line "straight lines")
("r" artist-select-op-rectangle "rectangles")
("s" artist-select-op-square "squares")
("p" artist-select-op-poly-line "poly-lines")
("P" artist-select-op-straight-poly-line "straight poly-lines")
("e" artist-select-op-ellipse "ellipses")
("c" artist-select-op-circle "circles")
("t" artist-select-op-text-see-thru "text (see thru)")
("T" artist-select-op-text-overwrite "text (overwrite)")
("D" artist-select-op-erase-char "erase char")
("d" artist-select-op-erase-rectangle "erase rect")
("y" artist-select-op-paste "pasting")
("\C-m" artist-key-set-point "first end")
("x" artist-select-op-cut-rectangle "cut rectangles")
("X" artist-select-op-copy-rectangle "copy rectangles")
)
(defhydra hydra-set (artist-mode-map "\M-s")
"settings"
("f" artist-select-fill-char "filling")
("d" artist-select-line-char "drawing")
("e" artist-select-erase-char "erasing")
)
(add-hook
'artist-mode-hook
'(lambda ()
(define-key artist-mode-map "\M-d" 'hydra-draw/body)
(define-key artist-mode-map "\M-s" 'hydra-set/body)
))
最重要的一点是 你得先按几个回车
并且在最后一行 多按几十个空格
虽然有自动化的方法来做 但 就当他是个仪式吧
1 个赞
感觉 switch buffer 方便多了
人家的问题是 “什么时候用Tabbar”
回答不用的 与题不符吧
我感觉 tab
累赘,还有侧边 file explorer
。 没什么用,提供不么信息。 C-x b
switch-buffer
还有有fuzzy search。。。
1 个赞
同感,可能是使用习惯。用vim 时,tab简直必须,用sublime 或vscode时,没个侧边栏简直不能忍。当用emacs时,什么花里胡哨,我有ivy
1 个赞
tab的效率有点低。。。tab一多,根本没法快速跳转。还是用ivy-switch-buffer或者projectile-find-files快