2008-03-01ãã1ã¶æéã®è¨äºä¸è¦§
ããã人çã¨ã¯ããæ¤ç´¢ã ããï¼ã¢ãããã©ï¼ DEEPï¼ã¨ãããã¨ã§ï¼ï¼ï¼ã以åä½ã£ããªã¬ç grep-find ãæ¹è¯ãããã¨ã«ãããããå¿«é©ã« grep-find ãã以å㯠*grep* ãããã¡ãæ ãã¦ãããã¬ã¼ã 以å¤ã§å¼ã³åºãã¨ç¶ãã¦ãã¬ã¼ã ãä½ã£ã¦ãã¾ã£ã¦ããããâ¦
ä¿ã«è¨ããæè¿ä½¿ã£ããã¡ã¤ã«ãã表示ããç°¡åãªã·ã§ã«ã¹ã¯ãªãããæ¸ãããå¼æ°ã«æå®ãã N æ¥ä»¥å ã«ä¿®æ£ãããã¡ã¤ã«ã表示ããã¨ãããã®ãããã©ã«ã㯠1 æ¥ä»¥å ã¨ãã¦ããã $ cat lt.sh #!/bin/bash N=1 [ -n "$1" ] && N=$1 echo "Show the file(s)â¦
絶æãããï¼ elisp ã® push ããªã¹ãã®æ«å°¾ã§ã¯ãªãå é ã«è¦ç´ ã追å ãããã¨ã«çµ¶æãããï¼ãããã unshift ãããªãããï¼ ; OKãã§ã (d a b c) ã¨ãããªã¹ãã«ãªãã (setq x '(a b c)) (push 'd x) ; OKããããããããã£ãã ããªã®ã«â¦ã (append x â¦
ã¿ã°ã¸ã£ã³ãããã¦ããã¨ããã¤ã®ã¾ã«ãã©ãã©ããããã¡ãæºã£ã¦ãããC-x C-b ãã¦ãç®å½ã¦ã®ã½ã¼ã¹ã«è¡ããã¨æã£ã¦ã大éã®ãããã¡ï¼ãã¡ã¤ã«ã«éãã *Help* ã¨ã *Buffer List* ã¨ããå«ãï¼ããªã¹ãããã¦ãã¦ãã®æç¹ã§ã¡ãã¶å°ãè¿ããããªãããâ¦
æ·±ããã£ã¬ã¯ããªã«ããæã«ãã£ãã cd ãå¼æ°ãªãã§æã£ã¦ãã¾ãã¨èãããããã§ã以åã®ãã£ã¬ã¯ããªã«ç°¡åã«æ»ãã(Back to Directory) ããã«ãã·ã§ã«ã®çµè¾¼ã¿å¤æ° $OLDPWD ã使ã£ã¦ã¡ãã£ã¨ããã·ã§ã«é¢æ°ãä½ã£ã¦ã¿ãã $ bd () { cd $OLDPWD; } $ pâ¦
ãã£ãã grep-find ãè¡çªå·ã¤ãã§æ¤ç´¢ç®æã表示ãã¦ãããã®ã§ã¸ã£ã³ãããå ã§ãè¡çªå·ã表示ããããã«ãããã ã¸ã£ã³ãããå¾ã« C-x ESC ESC ã® repead-command ã§å¼ã³åºããé¢æ°ã調ã¹ã㨠compile-goto-error ã¨ããé¢æ°ã§ãããã¨ãããã£ããããâ¦
Emacs ã®æ©è½ã®ä¸ã§ã M-x grep-find ã¯ãæ°ã«å ¥ãã®ã²ã¨ã¤ãæååæ¤ç´¢ã«å ã + *grep* ãããã¡ã«ç§»åãã¦ãããç®æ㧠Enter ããã¨ããã«ã¸ã£ã³ããã¦ããã便å©ãªã¤ããªã®ã ããã ã以ä¸ã®ãããªä¸æºç¹ããã£ãã®ã§ã«ã¤ã¼ã³ãã¦ã¿ãã - æ¤ç´¢ããæã«ãâ¦