Evernoteã¨Emacsã®é£æº(ãã ãWindowséå®): ã«ã¬ã³ããããã¡ã®å 容ãEvernoteæ°è¦Noteã¨ãã¦ç»é²ãã
ãhttp://r.nanapi.jp/1970/ã ã¨ããè¨äºã§ãEvernoteãã³ãã³ãã©ã¤ã³ã§å¶å¾¡ããENscriptã¨ãããã®ã®åå¨ãç¥ã£ãã®ã§ããããå©ç¨ãã¦ãæ¨è¨ã®emacs lispãã¤ãã£ãã
Windowséå®ã¨ãããã¨ããããéè¦ã¯ä½ãã§ããããªãã
æ¡ä»¶
使ãæ¹
- ä¸è¨ã¹ã¯ãªããã .emacs ã«ç»é²ã
- M-x save-current-buffer-to-evernote
- ãããããã¡ã®æ示ã«å¾ã£ã¦ããã¼ãã®ã¿ã¤ãã«ãã¿ã°ãå
¥åããã
- å ¥åãããã¿ã¤ãã«ã«".txt"ã®æ¡å¼µåãä»å ãããã®ããEvernoteä¸ã§ã®Noteã¿ã¤ãã«ã¨ãªãã
- è¤æ°ã¿ã°ãä»å ããã¨ãã¯åè§ã¹ãã¼ã¹åºåãã§ã
ã¹ã¯ãªãã
(defun save-current-buffer-to-evernote (title tagstring) "ã«ã¬ã³ããããã¡ã®å 容ãevernoteã«ä¿åãã" (interactive (list (read-string "Note Title: ") (read-string "Tags (with SPC separation): ") )) (save-excursion (let* ((work-buffer-name "*en-workbuffer*") (bufbody (buffer-substring (point-min) (point-max))) (tmp-file-name (concat (getenv "TEMP") "\\" title ".txt")) (ens-exec "\"C:/Program Files/Evernote/Evernote3.5/ENscript.exe\"") (ens-com (concat ens-exec " createNote" " /s \"" tmp-file-name "\"" " /t " (replace-regexp-in-string " +" " /t " tagstring))) work-buffer) (if (get-buffer work-buffer-name) (kill-buffer (get-buffer work-buffer-name))) (setq work-buffer (get-buffer-create work-buffer-name)) (set-buffer work-buffer) (insert bufbody) (write-file tmp-file-name) (message ens-com) (shell-command ens-com) (kill-buffer work-buffer) )))
æç´
- ENscriptã§ã¯ ".txt" ã®æ¡å¼µåãæã£ããã¡ã¤ã«ããç»é²ã§ããã®ããã
- ãã㦠".html" ãã¡ã¤ã«ããªããããã¹ãã®ã¾ã¾ç»é²ã§ããã°è¯ãã®ã«ãã¨æã£ãã
- ããããã°ããã¤ã¾ã§ã使ãå¿å°ãæ¹åããªãevernoteã¨ãã£ã¿ã«ä»£ãã£ã¦ãorg-mode 㧠HTML-exportãããã®ãEvernoteã¸ç»é²ãã¨ãã夢ã®ã¨ãã£ããç°å¢ãå®ç¾ã§ããã®ã«ãã¨ã