quickrun.elï¼ä¾¿å©ã ãã使ã£ã¦ããã®ã ãã©ï¼å®è¡ãçµäºããã¾ã§çµæãè¦ããªãã®ãä¸ä¾¿ã ã£ãï¼
éä¸ã§sleepãã¦ããï¼å¤é¨ã¨éä¿¡ãã¦ããï¼ééã£ã¦ç¡éã«ã¼ããã¦ããï¼ãªã©ã®ã¨ãã«å°ã£ã¦ãï¼
compileã使ã£ã¦å®è¡ããããã«ãã¦ã¿ãï¼
åºåãé次表示ããã¦ä¾¿å©ï¼
(defun my-quickrun () "Run commands quickly for current buffer" (interactive) (quickrun-common (point-min) (point-max))) (defun my-quickrun-with-arg (arg) "Run commands quickly for current buffer with arguments" (interactive (list (read-string "QuickRun Arg: "))) (let ((quickrun-option-args arg)) (my-quickrun))) (defun my-quickrun-common (start end) (let* ((src (file-name-nondirectory (buffer-file-name))) (lang (quickrun/decide-file-type src)) (cmd-key (or (and current-prefix-arg (quickrun/prompt)) quickrun-option-cmdkey (quickrun/get-command-key lang) (quickrun/prompt))) (cmd-info-hash (save-excursion (quickrun/fill-templates cmd-key src)))) (setq quickrun-last-lang cmd-key) (unless quickrun/compile-only-flag (compile (gethash :exec cmd-info-hash)))))
quickrun.elをcompileで動かすやつ — Gist
ã»ãã«ããæ¹æ³ããã¾ãããæãã¦ãã ããï¼
é¢é£
追è¨
quickrun.elãç¥ã¢ãããã¼ããããã®ã§ä¸è¨ã¯ä¸è¦ã§ãï¼