ã«ã¼ã½ã«ä½ç½®ã®åèªãè¾æ¸ã§å¼ãemacs lispã使ã£ã¦ããã®ã ãã©ï¼è¾æ¸ãå¼ã¶Pythonã®ã¹ã¯ãªãããé
ãã¦ï¼è¾æ¸ãå¼ãã¦ãéEmacsããããã¯ãã¦ï¼ä¸å¿«ã ã£ãï¼
deferred.elã使ã£ã¦ã¹ã¯ãªãããå¼ã¶ããã«ããï¼
ããããæ©è½ãæ¸ã£ã¦ï¼å®è¡ãéåæã«ãªã£ãï¼
;; éåæã«è¾æ¸ãå¼ã ;; ;; (+ "http://d.hatena.ne.jp/a666666/20100529/1275138722" ;; "http://sakito.jp/mac/dictionary.html" ;; "http://d.hatena.ne.jp/tomoya/20091218/1261138091" ;; "http://d.hatena.ne.jp/tomoya/20100103/1262482873") (require 'cl) (require 'deferred) (defvar dict-bin "~/bin/dict.py" "dict å®è¡ãã¡ã¤ã«ã®ãã¹") (defun my-dictionary () (interactive) (lexical-let ((current-word (thing-at-point 'word))) (when current-word (deferred:$ (deferred:process dict-bin current-word) (deferred:nextc it (lambda (res) (popup-tip (concat current-word "\n" res))))))))