LoginSignup
1
1

More than 5 years have passed since last update.

anything-c-moccur.elの検索を1文字から始める

Last updated at Posted at 2013-04-28

anything-occurは1文字から検索をしてくれますが、anything-c-moccur-occur-by-moccurは3文字以上ないと検索をしてくれません。

そこで、anything-c-moccur.elを読んでみるとrequires-patternが何文字以上あると検索をするかを表しているようなので以下を修正しました。

anything-c-moccur.el
@@ -441 +441 @@
-    (requires-pattern . 3)
+    (requires-pattern . 1)
@@ -494 +494 @@
-    (requires-pattern . 5)
+    (requires-pattern . 1)
@@ -583 +583 @@
-    (requires-pattern . 5)
+    (requires-pattern . 1)
@@ -621 +621 @@
-    (requires-pattern . 3)
+    (requires-pattern . 1)

これで、anything-c-moccur-occur-by-moccuranything-c-moccur-buffer-listanything-c-moccur-dmoccuranything-c-moccur-dired-do-moccur-by-moccurが1文字から検索をしてくれるようになりました。

ただし、動作が重くなるので注意してください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1