EmacsWiki: anything-include.elãemacs-wikiã«upãã¾ããã
#includeã£ã¦ä½åãè²ã
ãªå ´æã§æã¡è¾¼ãå¯è½æ§ãé«ããã®ãªã®ã§ãå±¥æ´ç®¡çã¨è£å®å
¥åãåºæ¥ãã¨ä¾¿å©ã ã¨æã£ã¦ä½æãã¾ããã
ããã¯ä½ï¼
- C, C++åãã
- #includeã®å±¥æ´ãä¿æãã¦åå©ç¨å¯è½ã«ããanything-sourceã
- #include <..> ã #include ".." ãã³ãã¼ã¾ãã¯ãã«ããã¨ãå±¥æ´ç¨å¤æ°ã«è¨é²ãããanythingçµç±ã§è£å®å ¥åå¯è½ã§ãã
- å±¥æ´ã¯ ~/.anything-include ã¨ãããã¡ã¤ã«ã«ä¿åããã®ã§ã»ãã·ã§ã³ãåãã¦ãåå©ç¨å¯è½ã§ãã
- è¤æ°è¡ã³ãã¼ããããã«ãã¦ããä¸è¡ãã¤è§£æãã¦å±¥æ´ã«ä¿åããã®ã§ããã¡ã¤ã«å ¨ä½ãã³ããããã¨ãã®ãã¡ã¤ã«ã§ä½¿ããã¦ãã#includeãã¯ããå ¨ã¦å±¥æ´ã«è¿½å ããã¾ãã
使ãæ¹
1. .emacsã«ä»¥ä¸ã®è¨è¿°ã追å ãã¦ä¸ããã
(require 'anything-include)
2. anything-sourceã« 'anything-c-source-include' ã追å ãã¦ä¸ãããã©ãã«è¿½å ãããã¯ããªãã®å¥½ã¿ã«åããã¦ãèªç±ã«ï¼
(setq anything-sources (list anything-c-source-buffers anything-c-source-files-in-current-dir anything-c-source-recentf anything-c-source-emacs-commands anything-c-source-info-pages anything-c-source-include ))
3. å¿ è¦ã§ããã°ä»¥ä¸ã®å¤æ°ãã«ã¹ã¿ãã¤ãºãã¦ä¸ããã
(setq anything-include-save-file "~/.anything-include") (setq anything-include-max-saved-items 100)