Emacs ã§ç»åã®ã¹ã©ã¤ãã·ã§ã¼ã¨ã«ã¿ãã°è¡¨ç¤º
Emacs Advent Calendar jp: 2011 : ATND ã® 14 æ¥ç®ã§ãã
æ¨æ¥ã¯ uwabamiさんãææ¥ã¯g000001さんã§ã
ã¹ã©ã¤ãã·ã§ã¼ããã lisp ã¨ç»åã®éåæã§ãµã ãã¤ã«ä¸è¦§ã表示ãã image-dired ã®æ¡å¼µãä½ã£ã¦ã¿ã¾ããã
# ã¾ã Windows ã§ããã¾ã確èªãã¦ã¾ãããã
slideview.el
ãã£ã¬ã¯ããªã®ä¸ã®ãã¡ã¤ã«ã zip ã tar ã®ä¸ã«ãããã¡ã¤ã«ãé£ç¶ãã¦ã¿ããã¨ãã§ãã¾ãã
ç»åãã¡ã¤ã«ã¿ãããä¼¼ããããªãã¡ã¤ã«ãããããå
¥ã£ã¦ããã£ã¬ã¯ããªã§ãã¡ã¤ã«ãè¦æ¯ã¹ããããã®ã«ä½¿ã£ã¦ã¾ãã
ã¹ã©ã¤ãããããã¡ã¤ã«ãéããç¶æ ã§
M-x slideview-mode
ã£ã¦ããã¨ããã¡ã¤ã«åã§ã½ã¼ãã㦠Space ã§åæ¹ã¸ãBackspace ã§å¾æ¹ã¸ã¹ã©ã¤ããã¦ããã¾ãã
åããæ®æ®µ .emacs ã§è¨å®ãã¦ãã®ã¯ãããããã
(add-hook 'image-mode-hook 'slideview-mode)
ä¸å®æéãã¨ã«åæã«ã¹ã©ã¤ããã¦ã slideshow ã¯é©å½ã«ä½ã£ãã®ãç½®ãã¦ãããã© (M-x slideview-start-slideshow) ã¾ã 課é¡ãããã®ã§ã¡ããã¨åãã¾ãããã
image+.el
ç»åã window ãµã¤ãºã«åããã¦æ大åããããã«ã¼ã½ã«ä½ç½®ã®ç»åãµã¤ãºã®æ¡å¤§ã縮å°ãããæ¡å¼µã§ãã
ImageMagick ãå¿
è¦ã§ãã
èªçããç»åãã¡ã¤ã«ãè¦ãã¨ãã« slideview ã¨åããã¦ä½¿ã£ã¦ã¾ãã
ç»åã®ä¸ãåãã¦ãã¹ã¯ãã¼ã«ããã®ãå«ãªã®ã§ä½ãã¾ããã
Windows ã§ã cygwin ã使ããç°å¢(shell-file-name ãªã©ãé©åã«è¨å®)ãªãåãã¿ããã§ãã*1
# Windows 7 ç°å¢ã«ç§»è¡ãããã ãã©ãæ¥æ¬èªãã¡ã¤ã«åã«å¯¾ãã cygwin shell æ©è½ãã¾ãã§åããªããã¨ã«ãæè¿ã«ãªã£ã¦æ°ä»ããããã¼ããã©ãããã(^^;
(require 'image+) (imagex-auto-adjust-mode 1)
ã¨ãã£ã¦ããã¨ç»åãã¡ã¤ã«ãPDF ãªã©ãéããã¨ãã« window ã®ãµã¤ãºã«åããã大ããã«ãã¦è¡¨ç¤ºãã¾ãã
# ã¢ã¤ã³ã³ã¿ãããªå°ãããã¡ã¤ã«ãéããã¨ãã«ã¡ãã£ã¨ãããã
ããããªã¨ããã«åºã¦ããç»åã«ã¡ãã£ã¨ããæä½ããããã¨ãã«ã¯
M-x imagex-sticky-mode
ã¨ããã¨ã以ä¸ã®ãããªãã¼ãã¤ã³ãã§ã«ã¼ã½ã«ä½ç½®ã®ç»åãæä½ã§ããããã«ãªãã¾ãã
C-c + / C-c - | æ¡å¤§ãç¸®å° |
C-c M-l / C-c M-r | ç»åã®å転 |
C-c M-o | å ç»åã®è¡¨ç¤º |
ããã«ããããã¦ããã¨ãw3m ãã®ä»ãã©ããªã¢ã¼ãã§ãã«ã¼ã½ã«ä½ç½®ã«ç»åãããã¨ãã«åæ§ã®æä½ãã§ãã¾ãã
(imagex-global-sticky-modex 1)
image-dired+.el
æ¨æºã® image-dired ã¯åæå®è¡ã®ãããç»åãã¡ã¤ã«ããããã表示ãããã¨ããã¨ããã°ããæä½ã§ããªããªã£ã¦ãã¾ãã¾ãã
ããã§ãããããã®ãã¡ã¤ã«ã image-dired ããã¨ãã¯éåæã«ãããããã®ä»ç´°ã
ããã¨ãããã¡ãã£ã¨ä¾¿å©ã«ãã¦ã¿ã¾ããã
(require 'image-dired+) (image-diredx-async-mode 1)
ã§ãè¤æ°ãã¡ã¤ã«ã«å¯¾ã㦠M-x image-dired ããã¨éåæã§å®è¡ããããã«ãªãã¾ãã
dired ãããã¡ã«ããã¨ãã¨åæ§ã« x ã§åé¤ãã¼ã¯ãããã¡ã¤ã«ãåé¤ã§ããããã«ã©ã®ç»åãåé¤ãããã®ã popup ã§è¦èªã§ãã¾ãã
æå¾ã« elisp ã®ãã¨
http://www.mew.org/~kazu/doc/elisp/index.html
æ¬çããå¤ãã¾ããã©ãEmacs-Lisp ã§ããã°ã©ã ããã人ã«æ¯éèªãã§ã»ããèªã¿ç©ãç´¹ä»ãã¦ããã¾ãã
ä»èªã¿è¿ãã¦ã¿ã¦ãã¤ã¼ãæ¼ããã¦ãã¦ãé¢ç½ãèªã¿ç©ã ã¨æãã¾ãã
id:rubikitch ããã®æ¬ãçºå£²ãã㦠Emacs ãã lisp ã¾ã§è³ã£ã¦ãããã¨ããã§ããã(^^)