emacs㧠C/C++ ã§ã³ã¼ãã£ã³ã°ãã¦ããéçºè
åãã® emacs ã®è¨å®ã§ãï¼
[F5]ã§ãã«ãï¼[F4]ã§ã¨ã©ã¼è¡ã¸ã¸ã£ã³ãã¨ãã£ããã¨ãåºæ¥ï¼ããªã便å©ã§ãï¼
å ·ä½çã«ã¯ä»¥ä¸ã®ãããªäºãåºæ¥ã¾ãï¼
- [F7]ã§ã³ã³ãã¤ã«(ãããã¡ãå ¨é¨ä¿åãã¦ï¼make all ãã¾ã)
- [F4]ã§ã³ã³ãã¤ã«ã¨ã©ã¼è¡ã¸ã¸ã£ã³ã
- [F1]ã§ã«ã¼ã½ã«ä¸ã®åèªã«ã¤ã㦠ããã¥ã¢ã«ãéã
- SHIFT+[F7] ã§ãªãã«ã(make clean all)
- SHIFT+[F4] ã§ä¸ã¤åã®ã¨ã©ã¼è¡ã¸ã¸ã£ã³ã
è¨å®ã¯ .emacs ã«ä»¥ä¸ã®å 容ã追è¨ããã ãã§ãï¼
(setq auto-mode-alist (append '(("\\.C$" . c++-mode) ("\\.cc$" . c++-mode) ("\\.cpp$". c++-mode) ("\\.hh$" . c++-mode) ("\\.c$" . c-mode) ("\\.h$" . c++-mode)) auto-mode-alist)) (add-hook 'c-mode-common-hook '(lambda () (require 'vc-hooks) (setq completion-mode t) ;; make ã®ãªãã·ã§ã³ã¯èãã¦ããªã (setq compilation-read-command nil) ;; make ããã¨ã å ¨ãããã¡ãèªåçã«saveãã (setq compilation-ask-about-save nil) (define-key c-mode-base-map [f1] 'manual-entry) (define-key c-mode-base-map [f4] 'next-error) (define-key c-mode-base-map [(shift f4)] 'previous-error) (define-key c-mode-base-map [f7] 'compile) (define-key c-mode-base-map [(shift f7)] '(lambda () (interactive) ;;(require 'compile) ;;(save-some-buffers (not compilation-ask-about-save) nil) (compile-internal "make clean all" "No more errors"))) ))
ãã¼ã¢ãµã¤ã³ã¯æã® microsoft visual studio ã«åããã¦ãã¾ãï¼å°ãè¨å®ãæ¿ããã°ï¼
Visual Studio .NET 風ã®ãã¼ãã¤ã³ãã«ãåºæ¥ã¾ãï¼
ãã ï¼ãã®è¨å®ã¯ï¼å
é¨ã§ make all ã make clean ãå®è¡ãã¦ãã¾ãï¼ãã®ãã Makefile ãæ¸ããªãã¨ï¼åä½ãã¾ããï¼
Makefile ã®æ¸ãæ¹ã«ã¤ãã¦ã¯ *1 *2 ãåèã«ãã¦ãã ããï¼
ã¾ã以ä¸ã®æ¸ç±ãåèã«ãªãã¾ãï¼
ãªã©ã¤ãªã¼ã»ã¸ã£ãã³
売ãä¸ãã©ã³ãã³ã°: 72135
Emacs Lispãæ¸ã人ã®ç»ç«éçæ¬
Emacs Lisp