`(blog ,garaemon)

ポップカルチャーを摂取して、コードを吐き出す機械

emacsのC-sをhelm-swoopで置き換える

最近emacsの検索のキーバインドであるC-shelm-swoopに置き換えてみている.

helm-swoopに関する説明はこちらが詳しい

emacs.rubikitch.com

C-sのたびにバッファがかちゃかちゃしてうるさい気もするけど、使いこなせれば作業効率が上がりそうな気がする.

僕が使っている設定は以下のような感じ.

(global-set-key (kbd "C-s") 'helm-swoop)
(define-key helm-swoop-map (kbd "C-r") 'helm-previous-line)
(define-key helm-swoop-map (kbd "C-s") 'helm-next-line)
(define-key helm-multi-swoop-map (kbd "C-r") 'helm-previous-line)
(define-key helm-multi-swoop-map (kbd "C-s") 'helm-next-line)
;; Disable pre-input for helm-swoop
(setq helm-swoop-pre-input-function (lambda () nil))