The Silver Searcherã¨ag.elã®çµã¿åãããæé«ã«ä¾¿å©
emacs使ã£ã¦ãã¦emacsä¸ãããfind-grepãããã¨ã¯çµæ§å¤ãã§ãããããã®ãã¨ãæ¤ç´¢ããçµæããnext-errorã§æ¤ç´¢çµæã移åãããããªãã§ããã
ãã ã¾ãfind-grepã£ã¦é ããã§ããããããã°ããã¯ä»æ¹ãªãã
ãããªä¸ãæè¿ã¡ããã¡ããè¨ããå§ãã¦ããsilver_searcherã使ã£ã¦ã¿ãããããæ¿éãæ´ã«ã¯ag.elãªãã¦ãã®ããã§ã«ãããããçµã¿åãããã¨ã¨ã«ããé«éã«emacsä¸ããgrepã§ãã¦å¿«é©ã¨ãã話ã§ãã
The Silver Searcherã¤ã³ã¹ãã¼ã«
Macãªæ¹ã¯homebrewã§ä¸çºã§ããç°¡åã
brew isntall ag
GitHub - ggreer/the_silver_searcher: A code-searching tool similar to ack, but faster.
ag.elã¤ã³ã¹ãã¼ã«
ç§ã¯emacs24ã使ã£ã¦ããã®ã§ãM-x package-list-packagesããä¸çºã¤ã³ã¹ãã¼ã«ã§ãã¾ãããæ®éã«DLãã¦ãã¦pathéãã ãã§ã大ä¸å¤«ãªã¯ãã
GitHub - Wilfred/ag.el: An Emacs frontend to The Silver Searcher
å ¥ãã¦ããã¨ä¾¿å©ãªè¨å®
ãã®ãããã¯å¥½ã¿ã§ãããç§ã¯next-errorã¨previous-errorãF8/F7ã«ããããå²ãå½ã¦ã¦ãã¾ããã¾ãã©ã®ãã¼ã§ãè¯ãã®ã§ããçµæ§é »ç¹ã«ä½¿ãã®ã§å²ãã¨ã¢ã¯ã»ã¹ãããããã¼ã«ãã¦ãã¾ãã
(global-set-key [f8] 'next-error) (global-set-key [f7] 'previous-error)