èªåã§ãã¤ãã³ã³ãã¤ã«ããè¨å®
Emacsã¯*.elã¨ããEmacs Lispã½ã¼ã¹ãã¡ã¤ã«ã¨*.elcã¨ãããã¤ãã³ã³ãã¤ã«ããããã¡ã¤ã«ãããã
ã§ãã½ã¼ã¹ã®ã¿ãå¤æ´ãããã¨ãã*.elcããã*.elãæ°ãããªãã®ã ãããã®ã¨ããå¤ã*.elcãèªã¿è¾¼ãã§ãã¾ãã ã ããããå¤æ´ããã¯ããªã®ã«ãåæ ããã¦ãªãããããããªããã¨ãããã¨ã«ãªãã
ãã®åé¡ã«å¯¾å¦ããæ¹æ³ã¨ãã¦ãä¿åç´å¾ã«èªåãã¤ãã³ã³ãã¤ã«ããã¨ããæãããã®ã ããGitãªãã¸ããªã¨ãããã®å¤æ´ãã¨ãããã ã¨ãã¨ãã¯ãããã¦ãã¾ãããã¨ãã§ãããã¡ã¤ã«ã®å ´åããã¤ãã³ã³ãã¤ã«ã§å¾
ããããã®ã§å°ãã
ããã§ãèµ·åæã«å¿
è¦ãããã°ãã¤ãã³ã³ãã¤ã«ãããã¨ã«ããã
ãããããã®åé¡ãèµ·ããã®ã¯ãEmacs Lispããã¼ã ãã£ã¬ã¯ããªã«ããå ´åã ãã ãããload-pathã«å ããæç¹ã§ãèªã¿è¾¼ãåã«å¿ è¦ããã°ãã¤ãã³ã³ãã¤ã«ãã¦ãã¾ãã°ãããå¿ è¦ããã°ãã£ã¬ã¯ããªã«ãã*.elããã¤ãã³ã³ãã¤ã«ããã«ã¯ byte-recompile-directory é¢æ°ãããï¼
å°å ¥æ¹æ³ã¯ç°¡åã以ä¸ã®é¢æ°ãå®ç¾©ãã¦ããadd-to-list 'load-path "~/ã"ãããadd-to-load-path-recompile "~/ã"ãã«å ¨ç½®æããã°ãããè¤æ°ã®ãã¡ã¤ã«ã«ããã¦ãã人㯠grep-edit.el ã moccur-edit.el ã使ãããwizardã¯perlã®onelinerã§ã
(defun add-to-load-path-recompile (dir) (add-to-list 'load-path dir) (let (save-abbrevs) (byte-recompile-directory dir)))
ãããããã°ãå¿ã ãããSource file `ã' newer than byte-compiled fileãã¨ããã¡ãã»ã¼ã¸ãè¦ããã¨ããªããªãã¯ãã ã