helm.elãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã
ã¹ãã³ãµã¼ãªã³ã¯
emacsãã¨ã«ãã便å©ã«ãã¦ããããããï¼helm.elãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããï¼
ãã¦ã³ãã¼ã
package.elããã¤ã³ã¹ãã¼ã«ãã¦ããããï¼ãã¡ãã®githubãããã¦ã³ãã¼ãã§ãOK.
ã¤ã³ã¹ãã¼ã«
ãã¼ããã¹ã«ç½®ãã¦ï¼requireï¼åæããã¢ã¼ãã使ããããã«ããï¼ æä½éã®è¨å®ã§ãï¼
(add-to-list 'load-path "~/your-path/helm") (require 'helm-config) (helm-mode 1)
Emacsèµ·åå¾ï¼ãããããã¡ã®ä¸ã®ãã¡ã¤ã«åãªã©ãæ¸ããã¦ããã¨ããã«Helmã®æåãããã°OK.
使ãæ¹
ã¨ãããããã¡ã¤ã«ãæ¢ãç¨éã§ã¾ã試ãã¦ã¿ããã¨ã«ï¼ 大éã«ã³ãã³ããããã¾ããï¼ä¾¿å©ãªã³ãã³ãã§ããã°ãã®é½åº¦ãã¼ãã¤ã³ãè¨å®ãããã¨ããã§ãï¼
- ãã¡ã¤ã«ãæ¢ã
æ®éã«C-x C-fã§ãã¡ã¤ã«ãæ¢ãã³ãã³ãå®è¡ï¼
ã¡ãªã¿ã«ã³ãã³ãåã¯helm-find-files
ï¼
ç»é¢ã®ããã«helmãã¼ã¸ã§ã³ã«ï¼
ãã®helmã®ãããã¡ã§ã¯ãã¡ã¤ã«ã®åè£ãç¾ãã¾ãï¼
C-n
, C-p
ã§ä¸ä¸ã«ç·ã«ã¼ã½ã«ç§»åãã¦ï¼ææã®ãã¡ã¤ã«ãé¸æã§ããããã«ãªã£ã¦ã¾ãï¼
C-v
ã¨ããã¤ããã¾ãï¼ãªã¿ã¼ã³ããã¨ã«ã¼ã½ã«ä¸ã®ãã¡ã¤ã«ãéãã¾ã(ãã£ã¬ã¯ããªãªãdiredã§èµ·å)ï¼
C-l
ã§ã«ã¬ã³ããã£ã¬ã¯ããªã®ä¸ä½é層ã«ç§»åãã¾ãï¼
æ®éã®find-fileã¨æ¯ã¹ï¼ãã¡ã¤ã«ã®åè£ã常ã«è¡¨ç¤ºãããã®ã§ä¾¿å©ã§ãï¼ ã¾ãï¼å³ç¢å°ãã¼ã§ãã¤ãã®emacsã®ããã«è£å®ã§ãã¾ãï¼
- å±¥æ´çããããã¡ã¤ã«ãæ¢ããã³ãã³ã
M-x helm-for-files
ã«ã¬ã³ããã£ã¬ã¯ããªã ãã§ãªãï¼ä»ã®ãããã¡ã«åºã¦ãããã¡ã¤ã«ï¼éå»ã«éãããã¡ã¤ã«ã¾ã§ï¼ãã¹ã¦ã²ã¨ã¾ã¨ãã«æ¢ããã³ãã³ãï¼ å¤§å¤ä¾¿å©ã§ããï½
ä»ã«ãã³ãã³ãã¯ããããããã®ã§ããï¼ã¾ã å ¨ç¶ææ¡ãããã¦ãªãã§ãï¼éã³ãããããã¾ããï¼
ç´°ããè¨å®
ãã®ã¾ã¾ã ã¨ããããã¨ä¸ä¾¿ãªé¢ãããã®ã§è¨å®ï¼
- èªåè£å®ãç¡å¹
Emacs Helmã®ãã¹èªåè£å®ãããã¾ãªã®ã§ç¡å¹åãã - Webå¦ã³ãåèã«ãã¾ããï¼
;; èªåè£å®ãç¡å¹ (custom-set-variables '(helm-ff-auto-update-initial-value nil))
C-hãããã¯ã¹ãã¼ã¹ã«è¨å®ãã¦ããæ¹ã¯å¤ãã¨æãã¾ããï¼helmãå ¥ããã¨ãããããã¡ã§ C-hãç¡å¹ã«ãªã£ã¦ãã¾ãã¾ãï¼ã§ãã®ã§ä»¥ä¸ã®è¨å®ãå ¥ãã¾ãï¼
;; ãããããã¡ã§C-hãããã¯ã¹ãã¼ã¹ã«å²ãå½ã¦ (define-key helm-read-file-map (kbd "C-h") 'delete-backward-char)
ãããï¼ãã®è¨å®ãã¦ãoccurãªã©ã§patternãæå®ããã¨ãã¯ãã£ã±ãC-hã使ããªãã£ããâ¦
- è£å®
å³ãã¼ã«å²ãå½ã¦ããã¦ããè£å®ãã¿ãã«ãã¾ãï¼
;; TABã§è£å® (define-key helm-read-file-map (kbd "<tab>") 'helm-execute-persistent-action)
ã¨ã©ã¼æ
cl-libããªãã¨ãããããï¼Emacs 24.3ã«ããã¨è§£æ±ºãã¾ããï¼