Help us understand the problem. What is going on with this article?


More than 5 years have passed since last update.


  • M-s連打で次のシンボルに移動
  • M-s h でハイライトのON/OFF
  • M-s n N …でシンボルの前後に移動
  • M-s j kで関数内スコープでシンボルを前後に移動
  • M-s r でシンボルを置換
(require 'highlight-symbol)

(global-unset-key (kbd "M-s"))

(smartrep-define-key global-map "M-s"
  '(("M-s"        . 'highlight-symbol-next)
    ("h"          . 'highlight-symbol-at-point)
    ("n"          . 'highlight-symbol-next)
    ("p"          . 'highlight-symbol-prev)
    ("N"          . 'highlight-symbol-prev)
    ("l"          . 'highlight-symbol-list-all)
    ("a"          . 'highlight-symbol-remove-all)
    ("o"          . 'highlight-symbol-occur)
    ("j"          . 'highlight-symbol-next-in-defun)
    ("k"          . 'highlight-symbol-prev-in-defun)
    ("r"          . 'highlight-symbol-query-replace)))
ソースコード検索アプリのMilkodeとかを作っています。 ブログ
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away